Unit 2 Task 3 - Solution

Learn to code with step-by-step lessons. A place for students to work through programming fundamentals and build skills.

Solution - Task 3: Staff room keypad

← Back to task


One possible program:

password = ""
while password != "python123":
    password = input("Enter password: ")
print("Access granted")