23rd Nov 2024, 6:12 PM
Chery Roodley
12 Respuestas
+ 2
What have you tried so far?
23rd Nov 2024, 6:25 PM
Lisa
Lisa - avatar
+ 1
Read the first comment and convert the inputs to integer. The print function is misspelled.
23rd Nov 2024, 6:32 PM
Lisa
Lisa - avatar
0
# Convert the values into numbers wins = input() ties = input() # 1 win = 3 points # 1 tie = 1 point # Calculate the score score = win*3+tie # Concatenate the 2 strings to produce a message message = "Score: " + str(score) # Display the message Print(message)
23rd Nov 2024, 6:27 PM
Chery Roodley
0
How i can do that
23rd Nov 2024, 6:34 PM
Chery Roodley
0
https://sololearn.com/compiler-playground/c3l4MNlrBYvK/?ref=app
23rd Nov 2024, 6:55 PM
Chery Roodley
0
I tried to do it li that in the exercise it doesn’t work
23rd Nov 2024, 6:56 PM
Chery Roodley
0
Remove lines 9, 11, 12, 14 and fix the spelling: The variables are "wins", not "win" and "ties", not "tie" If the input was inp = input() we convert it to integer with the int() function inp = input() inp = int(inp)
23rd Nov 2024, 6:58 PM
Lisa
Lisa - avatar
0
you stored the number in x and y. you need to use the numbers to perform math operations. either rename x and y to wins and ties or use x and y for computing the score.
23rd Nov 2024, 7:06 PM
Lisa
Lisa - avatar
0
I need when i enter 4 as wins and 3as ties, like wins =3point and ties = 1 the result has to be 15 points But it doesn’t work
23rd Nov 2024, 7:06 PM
Chery Roodley
0
It’s work now thaks so much
23rd Nov 2024, 7:08 PM
Chery Roodley