Jun-15-2020, 11:57 PM
import time def log_in (): return () print("Register:") ui = [] pw = [] while True == 1: userid = input("Give you User name: " ) password = input("Give your password: ") if userid in ui: print('Userid already in use!') True == 1 else: print('You registered successfully!!') ui.insert(0, userid) pw.insert(0, password) print (ui) print (pw) #True == 1 break time.sleep(2) import os os.system('clear') while True == 1: print("Log In:") if input("User ID: ") in ui: if input("Password: ") in pw: print("Succesfull LogIn!") import webbrowser webbrowser.open('http://www.youtube.com', new=2) break True == 4 else: print("Wrong User name or password!! Try again!!")