list = [yes, no, seven]
print ("What do you want to pull from the list?")
answer = input()
print (list[answer])
How do i do this kind situation? I know this example doesnt work, but how does one make it so that it does work?
Edit: I would rather it be a number I input, 0 for yes, 1 for no and 2 for seven if that is possible