23rd Nov 2024, 6:12 PM
Chery Roodley
13 ответов
+ 5
What have you tried so far?
23rd Nov 2024, 6:25 PM
Lisa
Lisa - avatar
+ 2
Read the first comment and convert the inputs to integer. The print function is misspelled.
23rd Nov 2024, 6:32 PM
Lisa
Lisa - avatar
+ 2
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
+ 1
# 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
+ 1
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
How i can do that
23rd Nov 2024, 6:34 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
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
0
This code works: # Convert the values into numbers wins = int(input()) ties = int(input()) # 1 win = 3 points # 1 tie = 1 point # Calculate the score score = (wins*3 + ties) # Display the message print("Score:", score)
24th Nov 2024, 8:23 PM
The Big Cheese 1211-1967
The Big Cheese 1211-1967 - avatar