Examveda

What is the output of the following piece of code?
a=list((45,)*4)
print((45)*4)
print(a)

A. 180
[(45),(45),(45),(45)]

B. (45,45,45,45)
[45,45,45,45]

C. 180
[45,45,45,45]

D. Syntax error

Answer: Option C


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python