administrata on 2005-02-10 09:38:41 -0800:

> Hi! it's been about a week learning python!
> I've read 'python programming for the absolute begginer'
> I don't understand about % like...
> 
> 107 % 4 = 3
> 7 % 3 = 1
> 
> I'm confused with division :/

It's not division; the division operator is '/'.  It's the mod
function, which returns the remainder - for example, 7 divided by 3 is
2 remainder 1, so 7 % 3 returns 1.

Attachment: pgp2jMhcby79X.pgp
Description: PGP signature

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to