Hello friends!!!!!
Problem of the day
PYTHON
10/31/20241 min read
'''
Problem 1
In a cricket tournament, based on the outcome of a particular match a team gets following points:
wins get 7 points
draws get 2 points
losses gets 0 points
Team Aravali plays 8 matches in this tournament. It wins 4 matches,losses 3 matches, and draws 1.
What is the total number of points gained by the Team Aravali?
'''
# total matches played in the tournament = 't'
t = 8
# No. of matches won = 'w'
w = 4
# No. of matches lost = 'l'
l = 3
# No. of draws = 'd'
d = 1
# total points gained = 'tot_point'
tot_point = (4*7) + (3*0) + (1*2)
print(f"Total points scored by the team Aravali = {tot_point}")
Output:
Total points scored by the team Aravali = 30