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 whic
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
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
clickin
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
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
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
thank you genteman.
however, its not working :(
I resaved it, but same thing.
--
http://mail.python.org/mailman/listinfo/python-list
Omar wrote:
> thanks.
>
> i have saved and double clicked as suggested. when I save and double
> click a simple "hello program", the b&w 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
Omar schrieb:
> thanks.
>
> i have saved and double clicked as suggested. when I save and double
> click a simple "hello program", the b&w 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
thanks.
i have saved and double clicked as suggested. when I save and double
click a simple "hello program", the b&w python shell briefly comes up,
then disappears. is this how it should work?
--
http://mail.python.org/mailman/listinfo/python-list
10 matches
Mail list logo