Swipe to navigate through the chapters of this book
A video game repeats the action until all the players’ lives have gone, or the end of the game has been reached. So far, we have only written programs that run through a sequence of commands and then terminate. With the use of certain Python keywords, we can get the computer to repeat a block of code when required, either using conditions or for a set number of times.
Please log in to get access to this content
To get access to this content you need the following product:
- Making the Raspberry Pi Repeat Itself
- Sequence number
- Chapter number
- Chapter 6