[Tutor] question about a exercise.

Joel Goldstick joel.goldstick at gmail.com
Thu Aug 19 14:37:25 CEST 2010


Can you copy and paste the exact error message you receive in the traceback
when you run your program.  Also, copy the complete program here since it is
only a handful of lines

On Thu, Aug 19, 2010 at 7:31 AM, Roelof Wobben <rwobben at hotmail.com> wrote:

>  Hello,
>
> I follow the online book " How to think like a computer scientist".
> But now I have a problem with a exercise.
> This is not homework.
>
> The exercise is :
>
> Using a text editor, create a Python script named tryme3.py . Write a
> function in this file called nine_lines that uses three_lines to print
> nine blank lines. Now add a function named clear_screen that prints out
> twenty-five blank lines. The last line of your program should be a *call*to
> clear_screen.
>
> So I begin with this code :
>
> def threelines():
>     print
>     print
>     print
>
> print "regel 1"
> threelines()
> print "regel 2"
>
> But now I get a terminated at line 2 message.
> What did I do wrong.
>
> I work on a Win7 machine with python 2.7 and as a editor SPE.
>
> Regards,
>
> Roelof
>
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>


-- 
Joel Goldstick
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100819/3b16cc0e/attachment.html>


More information about the Tutor mailing list