[Tutor] x%2
emin
oldcowboyrocky at gmail.com
Mon Jan 9 00:53:17 CET 2012
http://www.youtube.com/watch?src_vid=QaYAOR4Jq2E&feature=iv&annotation_id=annotation_149056&v=M3g1GEkmyrw
in this tutorial what does mean x%2 ?
i think: i * 2% = always even number
but why not 4,6 or 8? but i * 4(6,8,10,12...)% = always even number too
for example: 100 * 2(4,6,8,10,12...)% = 2(4,6,8,10,12...)
even numbers = {2,4,6,8,10,12...}
and how pyton understanding 0(even or odd number or it is an exception?)?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20120108/6d6f0177/attachment-0001.html>
More information about the Tutor
mailing list