Archive:Python/Operators: Difference between revisions

wikademia>ArrowStomper
wikademia>ArrowStomper
Line 21: Line 21:
1
1


The % command can be used to find out if something is even or odd or if it is a multiple of some number.  Here is some code that is a little advanced for you right now.  Just type it in and now that within a couple of lessons you will know what you did.  When you type '''"print a is even"''' it must be 4 spaces to the right of the '''i''' in '''if''', I am having trouble working with Wikiversity and can't get it to do that.
The % command can be used to find out if something is even or odd or if it is a multiple of some number.  Here is some code that is a little advanced for you right now.  Just type it in and now that within a couple of lessons you will know what you did.  When you type '''"print a is even"''' it must be 4 spaces to the right of the '''i''' in '''if''', I am having trouble working with Wikiversity and can't get it to do that on this page without forming some kind of box.


Type:
Type: