"mustafa akkoc" <mustafa.c...@gmail.com> wrote

- In python shell , i can only write one line of code when I go to next line this sign appears >>> how can write the code like in script mode and
run

You can't.
Shell mode means you are entering code directly into the interpreter
so it executes the code line by line (or as a block if it is a block, like a for loop
say)

If you are using IDLE (or Pyhonwin)  you can open a new window which
will alow you to create a new Python script and run that from within IDLE.
And you can keep entering lines in the shell window, the results from
previous lines are stored as they would be in a normal program.


--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to