A

Admin • 832.27K Points
Coach

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

  • (A) hello
  • (B) HELLO
  • (C) Hello
  • (D) hELLO
  • Correct Answer - Option(C)
  • Views: 13
  • Filed under category Python
  • Hashtags:

Explanation by: Admin

`capitalize()` makes the first letter uppercase and rest lowercase.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.