+ 4

i did this code and different way

i just did this code in a different way but i think its still correct but it keeps saying that its wrong and the reason i think its correct its because in the different results it gives me the same result as the solution gives

18th Jan 2024, 7:34 AM
Mario Lopez
Mario Lopez - avatar
13 Respuestas
+ 2
Nobody can tell what you are talking about. Tag the relevant programming language. Mention course name and task number. Show your complete code.
18th Jan 2024, 7:46 AM
Lisa
Lisa - avatar
+ 2
You have a typo. Compare "Score" and "score".
18th Jan 2024, 7:51 AM
Lisa
Lisa - avatar
+ 2
I don't have access to pro practice but base on Lisa's comment, your output string is not matching the expected output. Look closely how the expected output is printed.
18th Jan 2024, 8:02 AM
Wong Hei Ming
Wong Hei Ming - avatar
+ 1
Spell "Score: " with captial "S", not with "s".
18th Jan 2024, 8:06 AM
Lisa
Lisa - avatar
+ 1
Opps bruh, It seems like you're facing an issue with your code : ( 1. Check if your code meets all specified requirements. 2. Verify input/output formats. 3. Test with different inputs, including edge cases. 4. Review variable names and logic. 5. Look for error messages during evaluation. 6. Use debugging tools or print statements. 7. Compare with the provided solution. 8. Seek clarification if needed. Thanks me later : )
19th Jan 2024, 4:28 PM
NextJS Boi
NextJS Boi - avatar
0
Code?
18th Jan 2024, 7:42 AM
Wong Hei Ming
Wong Hei Ming - avatar
0
# Convert the values into numbers wins = input() ties = input() wins = int(wins) ties = int(ties) # 1 win = 3 points # 1 tie = 1 point # Calculate the score p_wins = (wins * 3) p_ties = (ties * 1) score = (p_wins + p_ties) # Concatenate the 2 strings to produce a message message = "score: " score = str(score) # Display the message print(message + score)
18th Jan 2024, 7:47 AM
Mario Lopez
Mario Lopez - avatar
0
the course its introduction to phyton and the task is chess tournament
18th Jan 2024, 7:49 AM
Mario Lopez
Mario Lopez - avatar
0
# Convert the values into numbers wins = input() ties = input() wins = int(wins) ties = int(ties) # 1 win = 3 points # 1 tie = 1 point # Calculate the score p_wins = (wins * 3) p_ties = (ties * 1) Score = (p_wins + p_ties) # Concatenate the 2 strings to produce a message message = "score: " Score = str(Score) # Display the message print(message + Score)
18th Jan 2024, 7:55 AM
Mario Lopez
Mario Lopez - avatar
0
like this??
18th Jan 2024, 7:55 AM
Mario Lopez
Mario Lopez - avatar
0
can i send you a dm?
18th Jan 2024, 8:02 AM
Mario Lopez
Mario Lopez - avatar
0
the expected output its exactly the same as my output
18th Jan 2024, 8:03 AM
Mario Lopez
Mario Lopez - avatar
0
thankyouuu
18th Jan 2024, 8:20 AM
Mario Lopez
Mario Lopez - avatar