Advertisement

Making the Raspberry Pi Repeat Itself

  • Sloan Kelly
Chapter

Abstract

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.

Copyright information

© Sloan Kelly  2019

Authors and Affiliations

  • Sloan Kelly
    • 1
  1. 1.Niagara FallsCanada

Personalised recommendations