Skip to content

GoCelesteAI/python_loops_iteration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

Python Loops & Iteration

Source code for Python Tutorial for Beginners #7 - Loops & Iteration.

Files

File Description
for_loops.py for loops with range(), enumerate(), and zip()
while_loops.py while loops with break, continue, and else
guessing_game.py Mini project: number guessing game

Running

python3 for_loops.py
python3 while_loops.py
python3 guessing_game.py

Topics Covered

  • for loops with range(start, stop, step)
  • Iterating over lists
  • enumerate() for index + value
  • zip() for parallel iteration
  • while loops with conditions
  • break to exit loops early
  • continue to skip iterations
  • else clause on loops
  • import random for random numbers

About

Python Tutorial #7 - Loops & Iteration (for, while, range, break, enumerate)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages