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
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',
"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
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
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