Advertisement
Guest User

Python If Else

a guest
Jul 18th, 2019
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. if __name__ == '__main__':
  2.     n = int(input().strip())
  3.     if(n%2!=0):
  4.       print("Weird")
  5.     elif(n%2 and 2<=n and n<=5):
  6.          print("Not Weird")
  7. elif(n%2 and 6<=n and n<=20):
  8.        print('Weird')
  9. elif(n%2 and 20<n):
  10.       print("Not Weird")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement