On 31/08/11 20:35, Lisi wrote:
??  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.


It's the remainder operator:

IF N MOD X = 0

in BASIC

It's explained in the Simple Sequences topic of my tutorial and mentioned again in the Raw Materials topic under integers.

The use of % as the operator goes back to C. Many of Python's
operators are just inherited directly from C.

--
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/

_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to