SHARE
TWEET

Even or Odd

Sim0o0na May 3rd, 2018 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. number = int(input())
  2.  
  3. isEven = number % 2 == 0
  4.  
  5. if number == 0:
  6.     print('the number is zero')
  7. elif isEven:
  8.     print('even')
  9. else:
  10.     print('odd')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top