1.61 Operations Manual
Use this page for instructions on how sequence, selection and repetition are implemented in pseudocode and Python, with clear examples you can follow when stuck.
Sequence
INPUT username
OUTPUT "Welcome, " + usernameusername = input("Enter your name: ")
print(f"Welcome, {username}!)Selection
Binary selection
IF age >= 18 THEN
OUTPUT "You can vote."
ELSE
OUTPUT "You are too young to vote."
ENDIFif age >= 18:
print("You can vote.")
else:
print("You are too young to vote.")Multiway selection
Nested selection
Repetition
Pre-test loop (WHILE)
Post-test loop (REPEAT/UNTIL)
Counted loop (FOR)
Combining structures
Key concepts
Last updated
Was this helpful?