Compare commits
3 Commits
abea187f67
...
369ecff5e3
| Author | SHA1 | Date | |
|---|---|---|---|
| 369ecff5e3 | |||
| fed7a05832 | |||
| 09861a2f4f |
11
fiftyshades.py
Normal file
11
fiftyshades.py
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
n = int(input())
|
||||||
|
training_sessions = 0
|
||||||
|
for _ in range(n):
|
||||||
|
color_name = input().lower()
|
||||||
|
if "pink" in color_name or "rose" in color_name:
|
||||||
|
training_sessions += 1
|
||||||
|
print(
|
||||||
|
training_sessions
|
||||||
|
if training_sessions > 0
|
||||||
|
else "I must watch Star Wars with my daughter"
|
||||||
|
)
|
||||||
4
forcedchoice.py
Normal file
4
forcedchoice.py
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
n, p, s = map(int, input().split())
|
||||||
|
for _ in range(s):
|
||||||
|
cards = list(map(int, input().split()))[1:]
|
||||||
|
print("KEEP" if p in cards else "REMOVE")
|
||||||
14
grading.py
Normal file
14
grading.py
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
a, b, c, d, e = map(int, input().split())
|
||||||
|
score = int(input())
|
||||||
|
if score >= a:
|
||||||
|
print("A")
|
||||||
|
elif score >= b:
|
||||||
|
print("B")
|
||||||
|
elif score >= c:
|
||||||
|
print("C")
|
||||||
|
elif score >= d:
|
||||||
|
print("D")
|
||||||
|
elif score >= e:
|
||||||
|
print("E")
|
||||||
|
else:
|
||||||
|
print("F")
|
||||||
Reference in New Issue
Block a user