if - else

Andrew Koenig ark at acm.org
Thu Nov 27 15:33:05 EST 2003


> True, also someone's being careless with their code.
>
>     if SumOfNumbers = 10:
>         SumOfNumbers = 1
>
> What happens with that? :)

In Python?  Easy -- it doesn't compile.






More information about the Python-list mailing list