Control Flow in Python: Conditionals and Loops
Conditionals and loops in Python: if/elif/else, for and while, break and continue, with FizzBuzz and a guessing game.
GeeksArray is where software engineers learn from in-depth articles, share what they know, and build professional credibility.
In-depth articles and code-first tutorials across the stack. Read, comment, and share your own.
Explore articlesMulti-part series that take one topic from fundamentals to production — follow along at your own pace.
Browse the blogMost tutorials ship with a working sample project on GitHub, so you can clone it, run it, and make it yours.
Start reading
Conditionals and loops in Python: if/elif/else, for and while, break and continue, with FizzBuzz and a guessing game.
Lists, tuples, sets, and dictionaries in Python: how each works, when to use it, and how comprehensions help.
Work with Python strings: indexing and slicing, immutability, the most useful methods, f-strings, and formatting.
Follow new articles, join the discussion in comments, and share what you build.