Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 2
- if x == 2:
- print('the number is 2.')
- if x % 2 == 0:
- print('the number is even.')
- if x % 2 != 0:
- print('the number is odd.')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement