newbie help needed

Fredrik Lundh fredrik at pythonware.com
Mon Nov 14 11:35:27 EST 2005


"john boy" <xray_alpha_charlie at yahoo.com> wrote:

> I am running the following program:
>
> def print Multiples (n, high):
>     i = 1
>     while i <= high:
>          print n*i, ' \t' ,
>          i = i + 1
>     print
> def printMultTable (high):
>      i = 1
>      while i <= high:
>          print Multiples (i, high)
>          i = i + 1
> printMultiples(8,8)
> printMultTable(8)

> How can I get rid of the top row?

by not calling "printMultiples" before you call "printMultTable", perhaps?
that is, changing

    printMultiples(8,8)
    printMultTable(8)

to

    printMultTable(8)

should do the trick.

</F>






More information about the Python-list mailing list