first of all on line #1 you have error, because you don't call
second - don't complicate things
take the input outside range(), while performing test that what you get is valid integer between 2 and 5
I missed it's a challenge.
hint - use
input
(i.e. missing ())second - don't complicate things
take the input outside range(), while performing test that what you get is valid integer between 2 and 5
I missed it's a challenge.
hint - use
min()
and max()
in combination with input()
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs