runtime
42 / 500
question 42 Loops & Iteration · easy

The stamp card that always says 1

A café records each visit on a stamp card as an X; a - is an empty box. Six or more stamps earn a free coffee. The program prints Stamps: 1 for every card, and nobody ever gets a coffee. Fix it.

Keepthe card = ... line first. Check runs your program again with other cards
PrintsStamps: 6, then Free coffee! (only for 6 or more stamps)
Expected output2 lines
  1. 1Stamps: 6
  2. 2Free coffee!

Loading your progress…

The stamp card that always says 1 — Python practice · Runtime