def enter_pin(): while True: pin = int( input("Enter pin "))# keeps asking for the correct pin if pin in data: d = data[pin] while True: return data[pin] if pin[0] in 'qQ': break else: print("INCORRECT PIN TRY AGAIN")
My code currently looks like this
right it's throwing an issue with if pin[0] in 'qQ':, saying the int' object is not subscriptable