A

Admin • 802.91K Points
Coach

Q. What is the output of the following code?

Code:
a = 'hello'
print(a.upper())
  • (A) HELLO
  • (B) hello
  • (C) Hello
  • (D) SyntaxError
  • Correct Answer - Option(A)
  • Views: 5
  • Filed under category Python
  • Hashtags:

Explanation by: Admin
`upper()` returns the string in uppercase letters.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.