πŸ“Š Python
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
πŸ’¬ Discuss
βœ… Correct Answer: (C) 3

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
230
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
83%
Success Rate