-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathconditionals.py
More file actions
74 lines (54 loc) · 1.24 KB
/
conditionals.py
File metadata and controls
74 lines (54 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#if 'a' < 'b' :
#print("CONDITION was true")
#if 'b' < 'a' :
#print("CONDITION was true")
#if False:
#print("Was true")
#else:
#print("Was false")
#if True:
#print("Was true")
#else:
#print("Was false")
#if 'b' < 'a' :
#print("This is true")
#elif 'c' < 'd' :
#print("Second condition is true")
#else:
#print("No condition was true")
#name = input("What is your name? ")
#if len(name) >=6:
#print("Your name is long")
#elif len(name) == 5:
#print("Your name is 5 characters")
#elif len(name) >= 4:
#print("Your name is 4 characters")
#else:
#print("Your name is short")
#name = Keith
#if name == "Kevin")
#print("Hello Kevin")
#else:
#pass
#fizz-buzz-item
#value = int(input("Enter an integer value: "))
#if value % 5 == 0 and value % 3 == 0:
#print("FizzBuzz")
#elif value % 3 == 0:
#print("Fizz")
#elif value % 5 == 0:
#print("Buzz")
#else:
#print(value)
if __name__ == '__main__':
n = int(input().strip())
if n % 2 != 0:
print("Weird")
elif n % 2 == 0 and (range(2, 5)):
print("Not Weird")
elif n % 2 == 0 and (range(6, 21)):
print("Weird")
elif n % 2 == 0 and n > 20:
print("Not Weird")
else:
pass