Turn It Up!

This commit is contained in:
2023-06-26 15:11:25 +02:00
parent dde489899d
commit fedb5b3de2

9
skruop.py Normal file
View File

@@ -0,0 +1,9 @@
volume = 7
n = int(input())
for _ in range(n):
command = input().strip()
if command == "Skru op!" and volume < 10:
volume += 1
elif command == "Skru ned!" and volume > 0:
volume -= 1
print(volume)