write a function with the name calculate_league_points then takes the number of wins, draws, and losses and calculates the number of points a football team has obtained so far - Each win is equal to 4 points - Each win is equal to 2 points - Each win is equal to -1 points
def calculate_league_points(wins:int, draws:int, losses:int) -> int:
return 4*wins + 2*draws + -1*losses
print(calculate_league_points(3, 1, 2))
Comments
Leave a comment