Hello,
I don't see a traceback only this output. regel 1 regel 2 script terminated. And the code I gave you was the whole code because Im still working on this one. I have learned to do one problem at the time so in mu opion first make the part which prints out 3 lines and then expand to 9 lines and then expand to the function clear_screen Roelof Date: Thu, 19 Aug 2010 08:37:25 -0400 Subject: Re: [Tutor] question about a exercise. From: joel.goldst...@gmail.com To: rwob...@hotmail.com CC: tutor@python.org 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 <rwob...@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@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor -- Joel Goldstick
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor