I am getting a classic
NameError : name 'Y' is not defined.
I know this is extreme beginner level and a multitude of similar questions have been answered. However none of the answers have helped me fix this simple issue. Replies would be greatly appreciated.
def intro ():
#checks if the user already has an account and redirects accordingly
print("ARE YOU A REGISTERED USER? [Y/N]")
redirect = input()
if redirect == "Y" :
print("OK")
else :
print("gtfo")
intro()