Unit 2 Task 3: Staff room keypad

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

Unit 2 Task 3 - Staff room keypad

← Unit 2 tasks · Solution


The staff room door only opens when someone types the correct password: python123.

Write a program that:

Use a while loop and string comparison (==).

Skills: while, strings, input().