Name, colon, price

Complete the previous lesson to unlock this one.

Back to the path

Name, colon, price

Level 11: Exact lines. Paper 2 marks the characters on the line. A missing space after the colon is a wrong answer.

Read an item name, then an integer price. Output one line:

Name: price

Example: input Pencil then 3 → Pencil: 3.