Closed EricSchles closed 7 years ago
Here's the answer:
if __name__ == '__main__':
n = int(input())
if n % 2 == 1:
print("Weird")
else:
if n in list(range(6, 21)):
print("Weird")
else:
print("Not Weird")
Hi! I'm having trouble with this question:
https://www.hackerrank.com/challenges/py-if-else
This is my example code, it's failing to produce the right output.
Here are the things I've tried