+ 1
Chess tournament
Hello I’m a new coder that just started python I’ve been having a hard time finding the and answer for the chess tournament practice I can not move to the next step if I can’t do this practice if anybody knows the answer it would be much appreciated thank you and have a good day. 😀
3 Respostas
+ 3
Edison Presume We don't know what you are having problems with
> Is it converting a string to an integer
> Is it the problem with
math itself :
score =
wins * 3
+
ties * 1
> or is it the concat of the message line :
> or the display line meaning to print the message...
Your current question/thread is unclear.
+ 2
I can't see the question, nor the code
+ 1
# Convert the values into numbers
wins = input()
ties = input()
# 1 win = 3 points
# 1 tie = 1 point
# Calculate the score
score = 3*wins+ ties
# Concatenate the 2 strings to produce a message
message = "Score:" + str(score)
# Display the message
print(message)