Your first Python program

What appears when Python evaluates this line?

Examples

Worked example

Input
print(10 - 4)
Expected output
6

Hints and solution

Hint 1

Write down the starting state and walk through one example by hand.

Reveal worked answer

Python subtracts 4 from 10, then sends the resulting number to print.

Back to the lesson