Advertisement
Adehumble

Week3 Coding Exercise 4

Feb 11th, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None | 0 0
  1. #4
  2. def even_or_odd(num):
  3.     if num%2==0:
  4.         print("even")
  5.     else:
  6.         print("odd")
  7.  
  8. print("Hello, dear user! Let's play a game.\nI'll help you decide if a particular number is even or odd.\nFeel free")
  9.  
  10. user_input=int(input("Enter any number of your choice: "))
  11. even_or_odd(user_input)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement