[Tutor] meaning of % in: if n % x == 0:

Lisi lisi.reisz at gmail.com
Wed Aug 31 21:35:43 CEST 2011


??  If either n or x or both were 0, and % were the same thing as *, the 
statement would be true, but from the context I don't think that % does mean 
the same as *, because * appears very soon after in the same fragment of 
code. 

Lisi

I'm sorry I am making such heavy weather of all this.  Blame 2 things: anno 
domini and an exaggerated (obsessive) need to understand language.


More information about the Tutor mailing list