Skip to content

Commit 40cfbe9

Browse files
committed
Completed conditional
1 parent fe13c74 commit 40cfbe9

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎Conditional.py‎

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

0 commit comments

Comments
 (0)