Computers and Technology, 13.10.2020 03:01 sammy16940
Write a statement that compares the values of score1 and score2 and takes the following actions. When score1 exceeds score2, the message "player1 wins" is printed to standard out. When score2 exceeds score1, the message "player2 wins" is printed to standard out. In each case, the variables player1Wins,, player1Losses, player2Wins, and player2Losses,, are incremented when appropriate.
Finally, in the event of a tie, the message "tie" is printed and the variable tieCount is incremented.
So far this is what I have:
if score1>score2:
player1Wins=player1Wins+1
player2Losses=player2Losses+1
print("player1Wins")
elif score2>score1
player2Wins=player2Wins+1
player1Losses=player1Losses+1
print("player2Wins")
else:
score1=score2
tieCount=tieCount+1
print("tie")
However, I'm still getting an error and not sure why. Am I indenting something wrong?
Answers: 2
Computers and Technology, 22.06.2019 23:00
In which part of a professional email should you try to be brief, but highly descriptive?
Answers: 1
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
Computers and Technology, 23.06.2019 08:30
Helen's credit card has an apr of 15.32% and a grace period of 17 days and helen pays her balance in the full every month. if her last billing cycle ended on september 26, 2009, and she made her payment on october 11, 2009, did she owe any interest on her last statement's balance?
Answers: 3
Computers and Technology, 23.06.2019 15:30
Brian wants to conduct an online search with a certain phrase. he intends to use the words books that belong to the 1800s in his search. how should he use the word that in his search?
Answers: 1
Write a statement that compares the values of score1 and score2 and takes the following actions. Whe...
Mathematics, 04.04.2021 23:10
English, 04.04.2021 23:10
History, 04.04.2021 23:10
Mathematics, 04.04.2021 23:10
Mathematics, 04.04.2021 23:10
Mathematics, 04.04.2021 23:10
Mathematics, 04.04.2021 23:10
Mathematics, 04.04.2021 23:10
Chemistry, 04.04.2021 23:10
Mathematics, 04.04.2021 23:10
Business, 04.04.2021 23:10