Advertisement
ellesehc

Odd or Even (PracticePython02)

Sep 23rd, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.24 KB | None | 0 0
  1. def OE():
  2.     num = float(raw_input('Input number: '))
  3.     check = float(raw_input('Input divisor: '))
  4.     result = num / check
  5.     if result % 4 == 0:
  6.         print "This is a multiple of 4!"
  7.     elif result % 2 == 0:
  8.         print "Even!"
  9.     else:
  10.         print " Odd!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement