Compare commits

..

3 Commits

Author SHA1 Message Date
369ecff5e3 Fifty Shades of Pink 2023-07-03 20:33:03 +02:00
fed7a05832 Forced Choice 2023-07-03 20:28:07 +02:00
09861a2f4f Grading 2023-07-03 20:20:25 +02:00
3 changed files with 29 additions and 0 deletions

11
fiftyshades.py Normal file
View 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
View 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
View 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")