CodeSolved

A comprehensive source of programming questions and exercises

Calculate the football team points

Practice Easy 1626/ Download 174 Views New

You will be given the score of a team that has won the Premier League at the entrance and you are printing the team's scores along with the number of wins this season at the output.

The team will play 2 games, so you will be given 2 points. For each team game either zero scored or one or three points. The team will score three points in the event of a zero -point loss, in the event of a draw.

Sample Input:

3 3
3 3
3 0
0 0
0 0
1 1
1 1
1 3
3 3
3 3
0 0
0 0
0 1
1 1
1 1

1 Answers

game=int(input("Games played:"))
a=0
for i in range (game):
    score = int(input("your team score"))
    a = a + score 
print('your final score :', a )

User 3288 Download Python

Submit answer

Submitting answers is currently unavailable.

×
×
Close