Not allowing me to give input on the second pass


#1

So when i put in the following code into code academy’s editor the console only querys me twice, once on the first pass and once on the last, not allowing me to give input on the second pass (though it still prints the string requesting the input). When i paste it into my IDLE for python 3.5.2 (making sure to edit print to use ()s and changing raw_input to simply input) it works just fine. What gives?

hobbies = []

for i in range(3):
  hobbies.append(str(raw_input('Tell me some of your hobbies. ')))
print hobbies

FAQ: Learn Python- Loops - For your hobbies
#2

Code looks fine, so it might be the interface. Try a hard refresh and see what happens.


#3

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