code doesn't work: question

Ruslan Spivak alienoid at is.lg.ua
Tue Sep 3 06:03:05 EDT 2002


Hello python-list user,

I want somebody to explain me why next code doesn't work:

var = 5

if (tmp = var) == 5:         # this is the error line
   print "ok"
else:
   print "error"

Best regards,
 Ruslan                          mailto:alienoid at is.lg.ua





More information about the Python-list mailing list