[Tutor] modification

Dutch dutch@lilrc.org
Mon, 20 Aug 2001 11:56:33 -0400 (EDT)

going through 'Core python programming' and modified an example to see
what would happen.  Well, errors happen. 

I wanted it to ask me for a number then loop that many time and finally
report to me what my number was.  This is what I typed that made the

num = raw_input ('What shall I count to? ')
counter = 0
while counter <= num:
    print 'loop #%d' %(counter)
    counter = counter + 1
print 'Your number was: %d', %num

David van Popering
"It has been established that having a really user friendly interface
makes it much too easy for aliens to take over the Enterprise."