Advertisement
Guest User

Untitled

a guest
Apr 21st, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # Finding if a number is even or odd.
  2. # This is just a fun little calculator
  3. # I enjoy playing around with this more than I should :)
  4.  
  5.  
  6. Num = int(input("Enter number: "))
  7. if Num % 2 is 0:
  8. print("Even")
  9. else:
  10. print("Odd")
  11.  
  12. # simple, yet fun to toy with
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement