+ 2

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
10 Respuestas
0
You must learn programming
4th Oct 2025, 4:38 PM
Yaroslav Vernigora
Yaroslav Vernigora - avatar
+ 4
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
+ 4
#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
+ 3
DO NOT HARDCODE THE VALUES. Get user input(). Work with user input. Pay attention to input(). input()
3rd Oct 2025, 6:32 AM
Lisa
Lisa - avatar
+ 2
Guys, thanks! I’m getting it and I passed to the next level.
3rd Oct 2025, 3:19 PM
Sejong King
Sejong King - avatar
0
wins = 10 The first variable to save a number tie=3 Second variable You can summarize it this way: print(wins*3+ties*1) The equation works within the print. Or wins=10 ties=3 score=wins*3+ties*1 print(f"Voici votre résultat {score}") Voici comment combiner texte et valeur.
3rd Oct 2025, 10:06 PM
Chiheb Rjb
Chiheb Rjb - avatar
0
Or just convert those wins and ties to str first
4th Oct 2025, 8:57 AM
꧁࿇༒°Sohan°༒࿇꧂
꧁࿇༒°Sohan°༒࿇꧂ - avatar
0
So I'm bigger what should I do
4th Oct 2025, 3:35 PM
Top Games
Top Games - avatar
0
What do you mean bro
4th Oct 2025, 3:53 PM
꧁࿇༒°Sohan°༒࿇꧂
꧁࿇༒°Sohan°༒࿇꧂ - avatar
0
Who
5th Oct 2025, 3:52 AM
꧁࿇༒°Sohan°༒࿇꧂
꧁࿇༒°Sohan°༒࿇꧂ - avatar