What does `’hello’.upper()` return?

Python Developer Easy

Python Developer — Easy

What does `’hello’.upper()` return?

Key points

  • The `upper()` method changes all letters in the string to uppercase.
  • The method does not modify the original string but returns a new uppercase string.
  • Remember to use parentheses () when calling a method in Python.

Ready to go further?

Related questions