It's Autumn! Prices fall like leaves! - hours only!Up to 80% off on all courses and bundles.-Close
Introduction
Cyber Battle Game
Game elements
Main Game Loop
9. Step 6b – printing remaining lives
Final game

Instruction

Great!

Exercise

Create a function named print_lives(lives_left), which should print a line like this:

Lives left: A - 1, B - 2

Invoke the function just after you create the lives_left variable and at the end of the play_round() function.