Q. What is the output of `print('hello'.capitalize())`?

  • (A) hello
  • (B) HELLO
  • (C) Hello
  • (D) hELLO
πŸ’¬ Discuss
βœ… Correct Answer: (C) Hello
Explanation: `capitalize()` makes the first letter uppercase and rest lowercase.
Explanation by: Mr. Dubey
`capitalize()` makes the first letter uppercase and rest lowercase.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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