Advertisement
Spocoman

03. Even or Odd

Dec 10th, 2021
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.18 KB | None | 0 0
  1. number = int(input())
  2. if number % 2 == 0:
  3.     print('even')
  4. else:
  5.     print('odd')
  6.  
  7.  
  8. Taрикатско решение:)
  9.  
  10. print('even' if int(input()) % 2 == 0 else 'odd')
  11.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement