I am new to python and I am alright at programming but I am not an expert. I am trying to create a bit of code that will do something based on some user input. There is nothing to specific I want it to do except to be able to do something for every option available. Here is what I have so far:
def main():
C = 0
while C != 1 or 2 or 3:
C = (input(" "))
if (int(C)) == 1:
function1()
elif (int(C)) == 2:
function2()
elif (int(C)) == 3:
function3()
else:
print("Invalid Choice ")
The problem I have here is that it does what I want, and for every situation I have available, except for when C is left blank. How would I catch this? I have seen many other questions on this topic but all of them are using something called raw_input in there input. I am not using it obviously. Do I just need to simply add something, should I rework my coding, if so how? Thank you very much.