πŸ“Š Python
Q. What does the `len()` function return in Python?
Code:
print(len("Python"))
  • (A) 5
  • (B) 6
  • (C) 7
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 6

Explanation: `len()` returns the number of characters in the string. 'Python' has 6 characters.

Explanation by: Mr. Dubey
`len()` returns the number of characters in the string. 'Python' has 6 characters.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
50
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate