# count.py # Let's have python count to 10. # In order to do a "for" loop in Python, we typically # use the range function that allows a variable to count. # One tricky thing about range is that we have to specify # our upper bound 1 higher than the last number we really want. # (This is a legacy of computer scientists often numbering # things starting at 0.) for i in range (1, 11): print i # Let's print the multiples of 5 from 5 to 30... for i in range (1, 7): print 5*i