Q. Which function is used to get the length of a string in Python?

  • (A) length()
  • (B) len()
  • (C) size()
  • (D) count()
πŸ’¬ Discuss
βœ… Correct Answer: (B) len()
Explanation: The len() function is used to get the length of a string in Python.
Explanation by: Vijay Sangwan
The len() function is used to get the length of a string in Python.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
188
Total Visits
πŸ“½οΈ
2 y ago
Published
πŸŽ–οΈ
Vijay Sangwan
Publisher
πŸ“ˆ
85%
Success Rate