Q. What will be the output of this code?

Code:
print(len('Hello World'))
  • (A) 10
  • (B) 11
  • (C) 12
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 11
Explanation: Length counts all characters including spaces.
Explanation by: Mr. Dubey
Length counts all characters including spaces.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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