10/19 For Your Hobbies

hobbies = []
# Add your code below!
hey = str(raw_input("What's your hobby, matey??"))
for hobby in range(4):
print hobby

When I run the code, it checks out. However, it doesn't ask the question again three times as I expected and prints out a 3 for some reason.

What's your hobby, matey?? Fighting

What's up?


i would place raw_input inside the loop so that you get prompted multiply times

Then print hobbies after the loop


Thanks! That worked! Could you explain why it changed after?


that is good to hear :slight_smile:

sorry, what changed after what?


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.