January 30th, 2014, 04:34 PM
Python3 Turtle project (quick help)
Hi guys, I just signed up for this site
I'm very new to programming and need a bit of help with my first project.
The question is how do I "End your program with the input() command, so the turtle window stays around until you press return."
I had something like this
s = input()
if s == <return>
January 30th, 2014, 08:28 PM
You're probably using Microsoft windows. You probably activated your program by "clicking an icon". Or maybe the program name wherever you happened to find it.
The Microsoft console "DOS box" is usually set up to close when the program completes. Or maybe this isn't the issue. Whatever.
Anyhow, your program should probably end with (assuming python 3)
Python won't recognize
input('press enter to finish')
It does recognize the often useful string '\n' .
Comments on this post
[/code] are essential for python code and Makefiles!
January 30th, 2014, 10:50 PM
Thank you for your help...worked perfectly