I am getting a NameError saying that my name is undefined.
loginUI = Tk()
text=“Login by putting in your username into the console.”).pack()
global tempuser global checkuser tempuser = input("What is your username?: ") usernames = open("usernames.txt", "r") for line in usernames: if line == tempuser: checkuser = True break else: checkuser = False if checkuser == True: checkloginpass() else: print("Incorrect Username!") checklogin()
For some reason, even though this worked before, it just doesn’t seem to work anymore. FYI i am using Replit. It may be a problem with the website but just need some insight.