[Tutor] IDLE question

Gustavo Campanelli birdiepage at ciudad.com.ar
Fri Jan 9 20:37:06 EST 2004


antonio salgado wrote:

>Hi there to all. I;m new to programming and new to Python, a friend of mine recommended me to start to learn whit this.
>I want to know if when writting an instruction and get an error message the IDLE gets you to "another sentence" starting with the ">>>" you have to write everything all over again or if you can keep going whit the things you were doing?
>I was copying the "Animals" script to start.
>thanks for your time and understanding. I can't get any info on that, so I ask you all.
>thank you again
>P.S. any tips on self learning?
>

Instead of using a comand line interpreter to test a full script and 
then play a little with the code to get a better hang of it, you should 
make a new empty text file with .py extension (this goes a little 
different for Linux people, who need a first line in that file to tell 
Bash what to use to execute the code, as with any Linux script) and type 
your script there. After that, double click on it and it executes. You 
can even use IDLE, PythonWin, or any other IDE/Editor to have sintax 
highlighting, object methods dictionaries, and a lot of little extras, 
but the simple notepad that comes with windows is enough to do it. The 
advantages of this is that you have the code for reusing without 
retyping, and can copy and paste code in websites, mailing lists and 
other python programs with almost no effort at all.

Gedece, still a python newbie



More information about the Tutor mailing list