Unit 2 Task 23 - Solution

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

Solution - Task 23: Strong enough Wi‑Fi password

← Back to task


One possible program:

password = input("Choose a password: ")

while len(password) < 8:
    print("Too short - need at least 8 characters.")
    password = input("Choose a password: ")

print("Password accepted")