A

Admin • 833K Points
Coach

Q. What is the output of this code?

Code:
print(len('Python'))
  • (A) 5
  • (B) 6
  • (C) 7
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 23
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`len()` returns the number of characters in the string.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.