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
Expand|Select|Wrap|Line Numbers
- s_test_n = int(raw_input("How many tests did your student do?[1-6]:"))
- while s_test_n != 1 and s_test_n != 2 and s_test_n != 3 and s_test_n != 4 and s_test_n != 5 and s_test_n != 6:
- s_test_n = int(raw_input("Sorry but, how many tests did your student do?[1-6]:"))