Skip to content

Commit a1ae10f

Browse files
author
IsratIJK
committed
Solved 2nd problem
1 parent 1c75fda commit a1ae10f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Python If-Else/main.py

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
n=int(input())
2+
if n%2!=0:
3+
print("Weird")
4+
elif n%2==0 and n>=2 and n<=5:
5+
print("Not Weird")
6+
elif n%2==0 and n>=6 and n<=20:
7+
print("Weird")
8+
elif n>20:
9+
print("Not Weird")
10+

0 commit comments

Comments
 (0)