Vidyalelo
Python · Q50

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 50

Q50

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]
Answer
D.
Syntax error

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board