Page 50 - thinkpython
P. 50

28                                                          Chapter 3. Functions

                       The output of these statements is '+ -' on the same line. The output from the next print
                       statement would begin on the next line.
                     2. Write a function that draws a similar grid with four rows and four columns.

                  Solution: http: // thinkpython2. com/ code/ grid. py  . Credit: This exercise is based on an
                  exercise in Oualline, Practical C Programming, Third Edition, O’Reilly Media, 1997.
   45   46   47   48   49   50   51   52   53   54   55