Character Code in Python

Level 115 keystrokes

This prints the Unicode code point of 'A', which is 65, using the ord() function.

Python code

# ord() returns the Unicode code point (a number) of a single character
# The code point of "A" is 65, so 65 is printed
1print(ord("A"))

Output

65
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

More Python examples at level 1

← Python typing practice