Hello World in Python

Level 122 keystrokes

This prints 'Hello, World!' to the console. It's the classic first program in any language.

Python code

# print() is a built-in function that displays a value on the screen
# The text in double quotes is a string, so Hello, World! is shown exactly as written
1print("Hello, World!")

Output

Hello, World!
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
  • ,× 1
  • !× 1
  • (× 1
  • )× 1

More Python examples at level 1

← Python typing practice