Python - Preventing simple user Input errors with while loops.
Hello everyone! Anticipating my thanks for reading. Well, on line 2 i was trying to prevent an user of inputing something different than 1,2,3,4,5,6. It works, yes, but...
I was wondering if i could make it more simple. I first tried to do range(1,7) but it didn't work because it creates a list with [1,2,3,4,5,6] and not integers.
I was wondering if someone could help me with this! Thank you once again
Leave a comment: