This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Question | |
| # Replace if-else statement with design pattern. | |
| def get_prize(sport, medal): | |
| """ | |
| Return the prize which is depends on sport and medal. | |
| parameters are sport and medal. | |
| 'sport' parameter can be any sport in the list of Olympic Sports. | |
| (Currently, there are 2 and the list is subject to change in the future.) | |
| 'medal' parameter can be of the following colors: 'Gold', 'Silver' or 'Bronze'. |