P

Parvesh Kanani • 2.84K Points
Extraordinary

Q. What will be the output of following python code?

Code:
a=list((45,)*4) 
print((45)*4) 
print(a)
  • (A) (45,45,45,45).[45,45,45,45].
  • (B) 180[(45),(45),(45),(45)].
  • (C) 180[45,45,45,45].
  • (D) Syntax error
  • Correct Answer - Option(C)
  • Views: 135
  • Filed under category Python

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics