I saw the code;

I see too many formatting errors:
Line No 24 starts a function definition and the
next few lines are indented by two spaces, but
Line 29 is a print statement that is in line with
the def; IOW it completes the function. It is
very likely wrong.

You are defining functions within functions;
again it is very likely to be wrong.

My advice, look at PEP 8 and also some
sample python code in the tutorial to
understand how to format code. Remember:
Leading whitespace is syntactically significant

HTH


Asokan Pichai

Religion offers hope against all the strife and misery of
the world caused by religions.
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to