+ 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
13 odpowiedzi
+ 2
Nobody can tell what you are talking about.
Tag the relevant programming language.
Mention course name and task number.
Show your complete code.
+ 2
You have a typo. Compare "Score" and "score".
+ 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.
+ 1
Spell "Score: " with captial "S", not with "s".
+ 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 : )
0
Code?
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)
0
the course its introduction to phyton and the task is chess tournament
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)
0
like this??
0
can i send you a dm?
0
the expected output its exactly the same as my output
0
thankyouuu