M

Mr. Dubey • 100.28K 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: 20
  • Filed under category Python

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

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics