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])
β
Correct Answer: (C)
3
myList=[‘abc’,’tesdd’,’res’,’treb’] List2=[ len(x) for x in myList] print(List2[2])
You must be Logged in to update hint/solution