site = input("Choose a site:\n 1.site1 2.site2")
while site!=1 and site!=2:
print("Wrong input please choose between 1 and 2")
site=input("Choose a site:\n 1.site1 2.site2")
Here I'm trying to make the user choose between the number 1 and the number 2 but for some reason I cant make it work, specifically when I use the correct numbers as input it wont get out of the while loop so the program can run, I've also tried the following with no luck:
site = input("Choose a site:\n 1.site1 2.site2")
while True:
if(site==1 or site==2):
break
else:
print("Wrong input please choose between 1 and 2")
site=input("Choose a site:\n 1.site1 2.site2")