Learning Path ⋅ Skills: Python, Control Flow, for Loops, while Loops, break, continue, Context Managers
Explore Python control flow and loops to master conditional statements, Boolean operators (and
, or
, not
), for
and while
loops, emulate do-while loops, use in
and not in
for membership, and understand control flow keywords such as pass
, break
, and continue
, and use context managers through Python’s with
statements. Dive in!
Learning Path ⋅ 11 Resources
#1
#2
Course
Python Booleans: Leveraging the Values of TruthLearn about the built-in Python Boolean data type, which is used to represent the truth value of an expression. You'll see how to use Booleans to compare values, check for identity and membership, and control the flow of your programs with conditionals.
#3
Course
Using the Python and OperatorLearn how Python's "and" operator works and how to use it in your code. You'll get to know its special features and see what kind of programming problems you can solve by using "and" in Python.
#4
Course
Using the Python or OperatorLearn about how the Python or operator works and how to use it. You'll get to know its special features and see what kind of programming problems you can solve by using or in Python.
#5
Course
Using the Python not OperatorLearn how Python's "not" operator works and how to use it in your code. You'll get to know its features and see what kind of programming problems you can solve by using "not" in Python.
#6
Course
For Loops in Python (Definite Iteration)Learn all about how to perform definite iteration with Python "for" loops. You’ll see how other programming languages implement definite iteration, learn about iterables and iterators, and tie it all together to learn about Python’s for loop.
#7
Course
Mastering While LoopsMaster indefinite iteration using the Python "while" loop. You’ll be able to construct basic and complex while loops, interrupt loop execution with break and continue, use the else clause with a while loop, and deal with infinite loops.
#8
Tutorial
How Can You Emulate Do-While Loops in Python?Learn how to emulate do-while loops in Python. The most common technique to do this is to create an infinite while loop with a conditional statement that controls the loop and jumps out of it using a break statement.
#9
#10
Tutorial
The pass Statement: How to Do Nothing in PythonLearn about the Python pass statement, which tells the interpreter to do nothing. Even though pass has no effect on program execution, it can be useful. You'll see several use cases for pass as well as some alternative ways to do nothing in your code.
#11
Got feedback on this learning path?
Looking for real-time conversation? Visit the Real Python Community Chat or join the next “Office Hours” Live Q&A Session. Happy Pythoning!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4