Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.19 KB | None | 0 0
  1. input_num = int(input('Enter any number: '))
  2. def even_or_odd(input_num):
  3.     if (input_num%2==0):
  4.         print(input_num, "is even")
  5.     else:
  6.         print(input_num, "is odd")
  7.  
  8. even_or_odd(input_num)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement