Skip to content

Commit 785a5e7

Browse files
authored
If else declaration in python
1 parent 946be2e commit 785a5e7

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

If_else.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/bin/python3
2+
3+
import math
4+
import os
5+
import random
6+
import re
7+
import sys
8+
9+
10+
n= int(input())
11+
if n%2!=0:
12+
print("Weird")
13+
else:
14+
if (n>=2 and n<=5)or(n>20):
15+
print("Not Weird")
16+
elif n>=6 and n<=20:
17+
print("Weird")
18+

0 commit comments

Comments
 (0)