Advertisement
Guest User

new

a guest
Oct 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. x = 2
  2. if x == 2:
  3.     print('the number is 2.')
  4. if x % 2 == 0:
  5.     print('the number is even.')
  6. if x % 2 != 0:
  7.     print('the number is odd.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement