A

Admin • 833.24K Points
Coach

Q. What is the output of the below code?

Code:
myList=[‘abc’,’tesdd’,’res’,’treb’]

List2=[ len(x) for x in myList]

print(List2[2])
  • (A) 2
  • (B) 4
  • (C) 3
  • (D) None
  • Correct Answer - Option(C)
  • Views: 25
  • Filed under category Python
  • Hashtags:

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.