A

Admin • 825.56K Points
Coach

Q. What will be the output of this code?

Code:
print(len('Hello World'))
  • (A) 10
  • (B) 11
  • (C) 12
  • (D) Error
  • Correct Answer - Option(B)
  • Views: 7
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
Length counts all characters including spaces.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.