availableNums=["one","two","three","four","five"]
selectedNumbers=[]
for value in range(0,3):
selectedNumbers.append(raw_input("Choose a number:"))
if selectedNumbers not in availableNums:
print("The number "+str(selectedNumbers)+" isn't available/nBut it will be changed to six")
When I run this code and it asks for the numbers, I type in the numbers that are available in the list, but it still says that "The number ['one','two','three'] isn't available But it will be changed to six". Why is it doing that?
I think that I have to change the not
or in
part but I am not sure.