Advertisement
ancestor_tunji

# Even or odd function

Feb 11th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.16 KB | None | 0 0
  1. # Even or odd function
  2. def even_odd_function(a ="number" ):
  3.     if int(a) % 2 > 0:
  4.         print("odd")
  5.     else:
  6.         print("even")
  7. even_odd_function("15")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement