Step 1 of 1

Step 1 · Challenges

Checkpoint challenges

Four short programs that mix up what you've learnt in Chapter 1: printing text, sums, comments and fixing errors. They're in a different order from the lessons on purpose: working out which tool to use is the skill.

Text or sum?

Print the text 7 + 5 on the first line, then the answer to that sum on the second line:

7 + 5
12

Let Python work out the 12.

0 of 4 passed. Pass them all to finish the lesson.Next lesson: 1.bonus Bonus: the original six →
text_or_sum.py

Output

Press Run to see what your program prints.