4.3 Repeating With Loops Step 11 out of 13


#1

However, when I fill in the blank.
It says it is wrong. What am I missing?


#2

Some tips-- the big stumbling block will be the range blank. To go from 1 to 40, there is a number other than 40 that is the target, as the last value in a range is not included when the function runs.

Also, both print statements, if a person is not printing a variable, need quotations.


#3

Thanks for the tip this helped me out. I interpreted “numbers between 1 and 40” as 2-39, so I was using range(2,40). I guess I thought the term “between” excluded the beginning and ending numbers. Maybe “from one to 40” would be more clear? Maybe I’m just reading into semantics too much.