There are two basketball teams (Team1 and Team2) in a school and they play some matches every day depending on their time and interest. Some days they play 3 matches, some days 2, some days 1, etc.
Write a python function, find_winner_of_the_day(), which accepts the name of the winner of each match and returns the name of the overall winner of the day. In case of the equal number of wins, return "Tie".
Example:
Input : Team1 Team2 Team1
Output : Team1
Input : Team1 Team2 Team2 Team1 Team2
Output : Team2
Code:
Output
need an explanation for this answer? contact us directly to get an explanation for this answer