Download
looping n.
Skip this Video
Loading SlideShow in 5 Seconds..
Looping PowerPoint Presentation

Looping

199 Vues Download Presentation
Télécharger la présentation

Looping

- - - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript

  1. Looping George Mason University

  2. Today’s topics • Review of Chapter 4: Looping • Go over examples and questions • looping in Python

  3. Looping review • What is the basic idiom for a while loop? • Can we loop forever? • Can we loop an unknown number of times? • How do we debug a loop? an infinite loop?

  4. Let’s go over the exercises

  5. Looping in python • whileis a keyword allows the indented code beneath it to run as long as its condition is true • a colon is needed at the end of the statement

  6. Questions?