[Python] resetting password python program

Discussão em 'Python' iniciado por Stack, Junho 28, 2025.

  1. Stack

    Stack Membro Participativo

    I need to make a password reset program that makes the user input their new password twice so that the computer knows that the user has not made any mistakes when typing their new password. it should also only accept the password if it is eight characters or less and includes both lowercase and uppercase letters. here is what i have so far:

    import os
    import time

    def main():
    while True:
    PassWord = input ("Enter Password: ")

    for c in s:
    if c.islower():
    print c
    Password == :
    time.sleep(1)
    print ("Login successful!")
    logged()

    else:
    print ("Please try again")

    def logged():
    time.sleep(1)
    print ("Welcome to ----")


    main()

    Continue reading...

Compartilhe esta Página