Inspiration

What it does

How we built it

Challenges we ran into

Accomplishments that we're proud of

What we learned

What's next for s2q3_swaramulagari

def main(): scores = {'Player 1': 0, 'Player 2': 0, 'Player 3': 0} rounds = int(input("Enter the number of rounds: ")) for round_num in range(1, rounds + 1): print(f"\nRound {round_num}:") for player in scores: while True: score = int(input(f"Enter score for {player}: ")) scores[player] += score break max_score = max(scores.values()) winners = [player for player, score in scores.items() if score == max_score]

if len(winners) == 1: print(f"\n{winners[0]} wins with a score of {max_score}!") else: print("\nIt's a tie between:") for winner in winners: print(f"{winner} with a score of {max_score}!")

if name == "main": main()

Built With

Share this project:

Updates