I guess the indention got mixed up in your post, if I try to run it, I
get error messages at each of the "else:" lines, because they're
mis-indented.
"else" should be indented like the "if" it belongs to, e.g (using
underscores for spaces):
if s=='10':
____print "well done"
else:
____print "something else"
Make sure you're using tabs/spaces consistently across the whole file,
too.
If I indent the else clauses correctly, I can run your script and it
behaves the way you expeced.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to