Created
March 2, 2017 17:45
-
-
Save rjshekar90/23adb8dba81f8a3cebbb420bf81ff2ab to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Hackerrank Python If-Else | |
#https://www.hackerrank.com/challenges/py-if-else | |
if __name__ == '__main__': | |
n = int(raw_input()) | |
if n% 2 != 0: | |
print "Weird" | |
elif n % 2 == 0 and 2 <= n <= 5: | |
print "Not weird" | |
elif n%2 == 0 and 6<=n<=20: | |
print "Weird" | |
elif n%2 == 0 and n>20: | |
print "Not Weird" | |
else: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment