Re: [Tutor] python Error:IndentationError: expected an indented block

2007-01-09 Thread Kent Johnson
ziok wrote: > hi .. > > i'm learning python .i have a book with examples. i did the examples for > "if" and have the same errors... > here is the simple code(two of them) z=['ze','se'] for s in z: > ... if s=='ze': > File "", line 2 > if s=='ze': > ^ > IndentationError: expect

Re: [Tutor] python Error:IndentationError: expected an indented block

2007-01-09 Thread ziok
hi .. i'm learning python .i have a book with examples. i did the examples for "if" and have the same errors... here is the simple code(two of them) >>> z=['ze','se'] >>> for s in z: ... if s=='ze': File "", line 2 if s=='ze': ^ IndentationError: expected an indented block >>> z=['ze',

Re: [Tutor] python Error:IndentationError: expected an indented block

2006-11-08 Thread Alan Gauld
"Antonios Katsikadamos" <[EMAIL PROTECTED]> wrote > hi all. I try to run an old python code and i get the following > message > > File "/home/antonis/db/access.py", line 119 > def DoCsubnet1 (action, subject, target, args): # > DoC servers net > ^ > IndentationError: expec

Re: [Tutor] python Error:IndentationError: expected an indented block

2006-11-08 Thread Waving Brain
Use the "pass" keyword like this: def DoCsubnet1 (action, subject, target, args): # DoC servers net pass On 11/8/06, Antonios Katsikadamos <[EMAIL PROTECTED]> wrote: > hi all. I try to run an old python code and i get the following message > > File "/home/antonis/db/access.py

[Tutor] python Error:IndentationError: expected an indented block

2006-11-08 Thread Antonios Katsikadamos
hi all. I try to run an old python code and i get the following message File "/home/antonis/db/access.py", line 119     def DoCsubnet1 (action, subject, target, args): # DoC servers net   ^ IndentationError: expected an indented block 1) and I don't know what causes it. I would be