4.3 step 10 needing help with my coding

I can’t seem to get this program to work, and I’m pretty sure it has something to do with either my input or maybe I’m not casting the string to int properly. I fully understand range and if statements, to the point where I jumped ahead to step 11 and answered it correctly the first time, but my output when I program it is incorrect. No matter what number I input, it will print
hip
hooray
hip
hip
hooray
Repeating over and over again. My code looks like this:
number = input("Pick a number to see if it is divisible by two or three: ")
number = int(number)

for number in range (0,41):
if number % 3 == 0:
print (“hip”)
if number % 7 == 0:
print (“hooray”)
I haven’t really been stuck until now, so I feel like I must be overlooking something simple. Any help would be greatly appreciated!

It didn’t indent properly when I pasted it over, so that’s not my problem. No syntax errors whatsoever.

Hi DPJ,

I don’t think that the input is part of this step. Your code starting at “for” looks almost correct. The start of your range should not be 0. And the output should be:

Hip
Hip
Hooray
Hip
Hip
Hooray
Hip
Hip
Hip
Hooray
Hip
Hip
Hooray
Hip
Hip
Hooray
Hip
Hip