🚀 Hurry! Offer Ends In
00 Days
00 Hours
00 Mins
00 Secs
Enroll Now
X

यदि list1=[10,20,30], तो ऑपरेशन list1*2 _____ लौटाता है।

if list1=[10,20,30], then operation list1*2 returns _____.

A)
B)
C)
D)

Explanation:

The correct answer is (A) [10,20,30,10,20,30].

Explanation:

  • When you multiply a list by a number in Python, the list repeats that many times.
  • In this case, list1 = [10, 20, 30] and you perform list1 * 2.
  • This operation results in the list being repeated twice, so the output will be [10, 20, 30, 10, 20, 30].
Latest Updates