[Tutor] x%2
Noah Hall
enalicho at gmail.com
Tue Jan 10 02:13:24 CET 2012
2012/1/8 emin <oldcowboyrocky at gmail.com>:
> 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?)?
While it is true that all numbers divisible by 4 are even, not all
even numbers are divisible by 4. All even numbers, however, are
divisible by 2.
More information about the Tutor
mailing list