You need to calculate the points earned by a soccer team. The team won 18 games and ended 7 games as a draw. A win brings 3 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

You need to calculate the points earned by a soccer team. The team won 18 games and ended 7 games as a draw. A win brings 3

print(18*3-1*7)

27th Aug 2021, 4:25 PM
Don Kalu
3 Answers
+ 4
print(7*7-7)
27th Aug 2021, 4:32 PM
Simba
Simba - avatar
+ 1
If a draw is one point, it's print(18*3 + 7*1)
28th Aug 2021, 8:29 AM
David Ashton
David Ashton - avatar
- 1
win = 18 draw = 7 print(win * 3 + draw)
27th Aug 2021, 6:55 PM
Serhat Zoptan
Serhat Zoptan - avatar