यदि list1=[10,20,30], तो ऑपरेशन list1*2 _____ लौटाता है।
if list1=[10,20,30], then operation list1*2 returns _____.
A
[10,20,30,10,20,30]
B
[20,40,60]
C
[10,20,30,20,40,60]
D
None
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 performlist1 * 2. - This operation results in the list being repeated twice, so the output will be
[10, 20, 30, 10, 20, 30].
Correct Answer: A) [10,20,30,10,20,30]