Nested if's
GeoJempty
geojempty at aol.com
Fri Oct 15 16:09:18 EDT 1999
>I'm having a problem nesting if statements. I'm defining a
>function, and my syntax checks fine, until I try the following:
>
>if digit > 0:
> if digit = 5:
> variable = variable + whatever
>
>In the context of a CGI program this causes an Internal server error,
>"premature end of script headers".
Of course, digit == 5. Thanks everybody!! This friendly and helpful newsgroup
is ANOTHER reason for choosing Python instead of Perl.
Have a great weekend
George Jempty
More information about the Python-list
mailing list