Pretty good for one week keep going
just a quick tip tho make your code more readable first off by using a linter as with imports it a better practice to put them all at the top of the file
A linted python code should look like this
just a quick tip tho make your code more readable first off by using a linter as with imports it a better practice to put them all at the top of the file
A linted python code should look like this
import os 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) 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!!")I just put that in my editor (Visual studio code) and it linted it on save