tutorial example?????

john boy xray_alpha_charlie at yahoo.com
Sat Nov 12 20:43:12 EST 2005


OK...I have the following program
 
i = 1
while i <= 6:
    print 2 * i,'   ',
    i = i + 1
print
 
this is supposed to give you a "new" blank line after the program runs instead it just gives:
2   4   6   8   10   12
>>>
 
instead of:
2   4   6   8   10   12
 
>>>
 
to get the above return I have to type in "print" twice,this can't be right?..ANY SUGGESTIONS?
 
i = 1while i <= 6:
    print 2 * i,'   ',
    i = i + 1
print
print


		
---------------------------------
 Yahoo! FareChase - Search multiple travel sites in one click.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20051112/75e21c18/attachment.html>


More information about the Python-list mailing list