Basic Addition in Python
Level 114 keystrokes
This calculates 10 + 25 and prints the result 35. Python can perform arithmetic directly inside print().
Python code
# The + operator adds the two numbers; numbers are written without quotes# 10 + 25 is evaluated first, and print() shows the result, 351print(10 + 25)Output
35
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.
(× 1)× 1+× 1