Find my level
About ten short Python problems from across the course, starting in the middle. Each answer decides where the next one comes from, so they get easier or harder as you go. Solve what you can. If something is new to you, say so and move on.
There is no clock, no hints and no solutions. It changes nothing in your progress until you choose a start at the end.
Problem 1
problem.py
# print("Ready?")
print("Hi", "there")
print("Score:", 7, "points")
problem.py to run
print("Welcome to the game!)
print("Press start")
problem.py
coins = 5 coins = coins + 10 spent = coins coins = 0 print(coins, spent)
problem.py to run
print("Welcome", username)
username = "Kai"
problem.py
print(9 / 3) print(9 // 4) print(9 % 4) print(2 ** 3 * 2) print(-9 // 4)
problem.py to run
total = 3725 minutes = total // 60 seconds = total % 60 print(total, "seconds is", minutes, "min", seconds, "s")
problem.py
word = "brainlag"
print(word[0:5])
print(word[-3:])
print(len(word) - 1)
print(word.upper().count("A"))
problem.py to run
song = "Neon Rain" seconds = 207 print(f"___ is ___:___ long")
problem.py
n = input() print(n * 3) print(int(n) * 3)
problem.py to run
price = int(input())
qty = int(input())
print(f"Total: {price * qty:.2f}")
problem.py
score = 85
if score > 50:
print("pass")
elif score > 80:
print("merit")
else:
print("fail")
if score > 80:
print("well done")
problem.py to run
mark = int(input())
if mark >= 40:
print("Pass")
elif mark >= 70:
print("Distinction")
elif mark >= 55:
print("Merit")
else:
print("Fail")
problem.py
x = 7
y = x // 2
x = x % 2
if x == 1 and y > 2:
print("odd", y)
else:
print("even", y)
print(f"{x}{y}")
problem.py to run
total = input()
if total > 50:
print("Free delivery")
else:
print("Delivery: 4.99")
problem.py
n = 10
while n > 1:
n = n // 2
print(n)
problem.py to run
lives = 3
while lives == 0:
print("Lives left:", lives)
lives -= 1
print("Game over")
Python 3.13