Sunday, August 30, 2009

A COMMON ERROR IN PYTHON !

= AND ==

A common error in Python is a mix-up of == and = , this example illustrates this

Fig 1. The mix up !

Fig 2. The solution


Fig 3. Moral of the story





REFERENCE
(1) Allen Downey, ' Think Python'

No comments: