player1_scores = [] player2_scores = [] player3_scores = [] for i in range(3): player1_scores.append(int(input("Enter player 1 score: "))) player2_scores.append(int(input("Enter player 2 score: "))) player3_scores.append(int(input("Enter player 3 score: "))) player1_total = sum(player1_scores) player2_total = sum(player2_scores) player3_total = sum(player3_scores) if player1_total > player2_total and player1_total > player3_total: print("Player 1 is the winner!") elif player2_total > player1_total and player2_total > player3_total: print("Player 2 is the winner!") elif player3_total > player1_total and player3_total > player2_total: print("Player 3 is the winner!") else: print("It's a tie!")

Built With

Share this project:

Updates