Hello World, I just made hello world (problem set 0), but when a run it on the Python Command Line (console mode?) the last print command runs so fast before the program ends thats impossible to read the info. i.e. name and birth. How can I somehow «hold» it like fixed or paused, then (user) enter then exit? TY
Just add a raw_input() command at the end of your code which holds it until the user enters anything. Or you can use IDLE instead of the console.
TY karim, i send a link to the prog. maybe u can try it and see what i mean here's the code for it too http://dpaste.com/800737/ it's v3 so i think there's no raw_input command
The function has just been renamed. input() in Python 3.x is the same as raw_input() in Python 2.x http://stackoverflow.com/questions/10885537/raw-input-has-been-eliminated-from-python-3-2
Are you working with it in IDLE at all?
Yes, in IDLE it's fine! I just wanted that in console mode the last print stayed «frozen» before the prog. exits
ok, then add the input() at the end and it will stay there until you give it some kind of input, eg. push the enter key
And that was all it took.. TY
No problem. Glad to help.
Join our real-time social learning platform and learn together with your friends!