Lowercase String in Python

Level 122 keystrokes

This converts 'HELLO' to lowercase. The lower() method returns a new string with all characters in lowercase.

Python code

# lower() returns a new string with every letter in lowercase; the original is unchanged
# "HELLO".lower() gives "hello", which print() shows
1print("HELLO".lower())

Output

hello
Practice typing this code

Practice typing this code. Results are not recorded in the rankings.

Symbols in this code

The symbols you type in this Python code and how often they appear.

  • "× 2
  • (× 2
  • )× 2
  • .× 1

More Python examples at level 1

← Python typing practice