Turn It Up!

This commit is contained in:
jadmin committed 2023-06-26 15:11:25 +02:00
1 parent dde489899d
commit fedb5b3de2
1 file changed
+9
+9
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)