0

Python stressed me out

So, somebody explain to me why this code is wrong? wins = 10 ties = 3 score = wins * 3 + ties * 1 message = "Score: " + str(score) print(message) These huge chess challenges just won’t let me move on to the next level.

3rd Oct 2025, 2:54 AM
Sejong King
Sejong King - avatar
2 Antworten
+ 1
Your code is actually correct, nothing wrong there. If you want it cleaner just use an f-string wins = 10 ties = 3 score = wins * 3 + ties * 1 print(f"Score: {score}")
3rd Oct 2025, 3:41 AM
Riyadh JS
Riyadh JS - avatar
0
#Hi! Please, try to run this code: wins = int(input()) ties = int(input()) score = wins * 3 + ties * 1 message = "Score: " + str(score) print(message)
3rd Oct 2025, 5:21 AM
Yaroslav Vernigora
Yaroslav Vernigora - avatar