I suspected as much--that counting spaces might get tedious, that is. For my own programs, at least, I've found that one space is sufficient. So, for example, if I write a function, I indent the lines in the body by one space, if I have conditional (if) or loop (while) structures in the function I indent by two spaces, etc. In light of the ease of programming in python, I've decided to continue on, at least for the time being.

Rafael
On Apr 20, 2007, at 5:40 PM, yvonne thomson wrote:


On 20/04/2007, at 9:30 AM, Rafael Bejarano wrote:

Hello Yvonne,

Thanks for your prompt reply.

Actually, I've alreaddy started teaching myself python, and I've found that I can determine the number of spaces by which a line is indented by counting from the end of the previous line. After enabling control-option-lock (by pressing the control, option, and semicolon keys at the same time) it's a simple matter of pressing shift-right-arrow to get to the beginning of the following line and begin counting the spaces. I'm sure this can become quite tedious when writing large programs, but I thought I'd let you know how I've been circumventing the problem, just in case you weren't aware of this option.

Rafael



Hi

Trust me, that's how *I* was doing it. But also trust me. You simply *can't* get anywhere doing that once you end up with reasonable sized programs. particularly when you're reading other peoples programs that you aren't as familiar with, it gets incredibly tedious. There're a lot of other things a programmer has to keep in their heads. Having to manually count spaces as well, particularly since the usual indent level for python is 4 spaces, is just way distracting. Or at least, that was my experience.



Reply via email to