I am trying to check if the user typed in the correct password if they did then I want to make a bool true but for some reason it's just declaring a new bool with the same name I have tried looking for other questions but none of them are in my situation
Correct = False
def SubmitPassword():
if e6.get() == password:
Correct = True```