why does python execute line bye line as im coding?????????

andrew cooke andrew at acooke.org
Sat Jun 14 09:45:38 EDT 2003


hi,

looks like you're typing things directly into python (you've started
up the python interpreter in a window and are entering code).  if you
use python that way it will process each line like you describe.

the alternative is to put the python commands in a file as a program
and then get python to run the program after you've written
everything.  to do that you need an editor to edit the file.  even
better, use IDLE (if you're using windows, select "IDLE" from the
python menu and use that) it is an editor that "knows about" python
and so has extra functionality.  see
http://www.python.org/idle/doc/idle2.html

cheers,
andrew

ps i'm replying to your email directly and to the group, but i suspect
you won't get the email as aol filter out emails from people like me
that run email servers on their own machines...

l48r4t at aol.com (L48R4T) writes:
> im just going through the python for beginrers tutorial and all was cool untill
> i stated trying to do thing s like
> input = name("whats your name")
> print "hello  "name
> 
> the above example would execute after i hit return on the first line. not
> giving me the chance to input the second line of code ???????????????????
> any help wi=ould be a blessing thanks 
> simon
> -- 
> http://mail.python.org/mailman/listinfo/python-list
> 

-- 
http://www.acooke.org






More information about the Python-list mailing list