I have a door and there's a keypad code for it. If you get the code right you say Correct, if you get it wrong it just prints the wrong code (Just for debugging). However, I don't understand why nothing's happening when I code it. This is python btw:
realnumber = [12345]
inputnumber = []
def main():
integer = input("Input a list of numbers to open the door:")
if integer == realnumber:
print(realnumber)
print("Correct")
else:
inputnumber.append(integer)
main()