G+_Ant Pruitt Posted July 20, 2014 Share Posted July 20, 2014 I'm late to the party. Re: episode 14. So Snubs showed her code of counting up from 10 to 50 incrementing by two. When she ran it, you could see the actual list of numbers incrementing. When I do this, i just get 50. Here's my code. Thoughts? I appreciate the help. print "count up starting from 10" number = 10 while number<50: number = number+5 print number raw_input("press enter to quit") Link to comment Share on other sites More sharing options...
G+_Ant Pruitt Posted July 20, 2014 Author Share Posted July 20, 2014 I'm doing this via python 2.7*. In Xubuntu IDLE then pressing F5 to run in the shell. Even in the terminal i get the same looking output when running: python .py Link to comment Share on other sites More sharing options...
G+_Dirk Meijer Posted July 20, 2014 Share Posted July 20, 2014 I think indentation is crucial. Move the print statement to the right (under number). Link to comment Share on other sites More sharing options...
G+_Ant Pruitt Posted July 20, 2014 Author Share Posted July 20, 2014 bloody! That worked, Dirk Meijer . I appreciate your help. Link to comment Share on other sites More sharing options...
G+_Shannon Morse Posted July 24, 2014 Share Posted July 24, 2014 Glad Dirk Meijer was able to help :) Link to comment Share on other sites More sharing options...
Recommended Posts