[Tutor] Functions output

Kent Johnson kent37 at tds.net
Fri Apr 17 12:35:01 CEST 2009


On Fri, Apr 17, 2009 at 4:42 AM, mbikinyi brat <mbikinyi_brat at yahoo.com> wrote:
> Dear all,
> Here are two functions printme and change quite spaced apart. When executed
> the output in bold are joined. What can I do so that the results are
> separate in two blocks?

The format of the output depends only on the contents of the  print
statements, not on the arrangement of the code.

You can print a blank line with a plain
  print
statement or by including a newline '\n' in your output like this:
  print 'This is the first line\nThis is the second line'

Kent


More information about the Tutor mailing list