+ 3

I'm new here. How to write this? No Idea.

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 points, while a draw brings 1.

8th Nov 2021, 3:11 AM
Jeffrey Lee
9 Respostas
+ 8
Create a variable "score". Now calculate the total score((winning point x number of win)+(draw points x number of draws)). Then store the value in the variable. Done, simple. Try it and say it it worked. All the best =)
8th Nov 2021, 3:26 AM
Rishi
Rishi - avatar
+ 3
18*3 + 7*1 18 wins @ 3 point each 7 draws @ 1 point each See if you can print the result Review lesson 3.1 of the Python for Beginners tutorial
8th Nov 2021, 8:11 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 3
Okay, thanks. 😁
8th Nov 2021, 8:19 AM
Jeffrey Lee
+ 2
Jeffrey Lee Well done 🖐😀👍
8th Nov 2021, 8:29 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 2
Thanks.
8th Nov 2021, 9:19 AM
Jeffrey Lee
+ 2
print(18*3+7)
9th Nov 2021, 11:33 AM
Quarkom
+ 2
It is done in a simpler way:-- games = 18 dr_games = 7 total = (games) * 3 + dr_games print("total points :-- " , total)
9th Nov 2021, 4:11 PM
꧁Ankit Chatterjee[LESS ACTIVE THAN EVER]꧂
꧁Ankit Chatterjee[LESS ACTIVE THAN EVER]꧂ - avatar
+ 1
Thanks. I will give it a shot.
8th Nov 2021, 6:44 AM
Jeffrey Lee
0
I made it!! Thanks
8th Nov 2021, 8:28 AM
Jeffrey Lee