Re: 4 Simple Questions About Python/IDLE
At Thursday 7/9/2006 13:44, Omar wrote: I'm working through a tutorial, http://swaroopch.info/text/Byte_of_Python:Control_Flow, and I sorta can't get through the tutorial without overcoming these little speedbumps. This is why I'm asking these questions. Have you read the Python tutorial which comes with the documentation? You can read it online at http://docs.python.org/tut/tut.html Gabriel Genellina Softlab SRL __ Preguntá. Respondé. Descubrí. Todo lo que querías saber, y lo que ni imaginabas, está en Yahoo! Respuestas (Beta). ¡Probalo ya! http://www.yahoo.com.ar/respuestas -- http://mail.python.org/mailman/listinfo/python-list
Re: 4 Simple Questions About Python/IDLE
thanks. i have saved and double clicked as suggested. when I save and double click a simple hello program, the bw python shell briefly comes up, then disappears. is this how it should work? -- http://mail.python.org/mailman/listinfo/python-list
Re: 4 Simple Questions About Python/IDLE
Omar schrieb: thanks. i have saved and double clicked as suggested. when I save and double click a simple hello program, the bw python shell briefly comes up, then disappears. is this how it should work? Yes. because when your program terminates, the shell terminates. Or would you prefer it sticking around, cluttering screen space? If you want it to stay, make your program require a key-press in the end. something like this: raw_input(press return) Diez -- http://mail.python.org/mailman/listinfo/python-list
Re: 4 Simple Questions About Python/IDLE
Omar wrote: thanks. i have saved and double clicked as suggested. when I save and double click a simple hello program, the bw python shell briefly comes up, then disappears. is this how it should work? Yes, that is how it should work. Program is doing what you told it to. print hello program and exit (which closes the window). If you want it to pause put something after the print like: t=raw_input('Hit return to continue') This way the program will pause until you hit return. Good luck. -Larry Bates -- http://mail.python.org/mailman/listinfo/python-list
Re: 4 Simple Questions About Python/IDLE
thank you genteman. however, its not working :( I resaved it, but same thing. -- http://mail.python.org/mailman/listinfo/python-list
Re: 4 Simple Questions About Python/IDLE
Omar wrote: thank you genteman. however, its not working :( I resaved it, but same thing. Please post some code so we can actually do something more than read your mind. You can also run the program from a shell instead of from idle to see what happens. -Larry Bates -- http://mail.python.org/mailman/listinfo/python-list
Re: 4 Simple Questions About Python/IDLE
sure... print hello world hello world t=raw_input('Hit return to continue') I'm saving it as helloworld11, then double clicking the icon I saved it as. -- http://mail.python.org/mailman/listinfo/python-list
Re: 4 Simple Questions About Python/IDLE
okay... I got to work using the SCITE editor with print hello world # here we are once again raw_input(press return) cool! -- http://mail.python.org/mailman/listinfo/python-list
Re: 4 Simple Questions About Python/IDLE
Omar, The '' were causing the problem I would guess. Those are the interactive interpreter's prompts, not python. Saving a python session like that is a starting place for creating code, not the finished product. You might also want to save the file as helloworld11.py before double clicking it. Again, these problems indicate that you're not ready to even start coding until you've read a good intro text. John Purser On Thu, 2006-09-07 at 09:11 -0700, Omar wrote: okay... I got to work using the SCITE editor with print hello world # here we are once again raw_input(press return) cool! -- http://mail.python.org/mailman/listinfo/python-list
Re: 4 Simple Questions About Python/IDLE
I'm working through a tutorial, http://swaroopch.info/text/Byte_of_Python:Control_Flow, and I sorta can't get through the tutorial without overcoming these little speedbumps. This is why I'm asking these questions. -- http://mail.python.org/mailman/listinfo/python-list