HOW do you stop a print???

john boy xray_alpha_charlie at yahoo.com
Mon Nov 14 03:54:28 CET 2005


ok...I am running the following program:
 
def printMultiples (n):
     i = 1
     while i <= 6:
     print n*i,   ' \t ',
     i = i + 1
i = 1
while i <= 6:
     printMultiples(i)
     i = i + 1
 
this is supposed to return a simple multiplication table, but for some reason it does not want to stop printing after 6 columns...instead it prints from left to right for a total of 10 columns...I need some sort of a "stop print" after the first 6 columns and then continue to fill in those columns...Can anybody solve this problem?...
-thanks-



		
---------------------------------
 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/20051113/fc3df072/attachment.html>


More information about the Python-list mailing list