+ 1
2.1 soccer game test.
18 games. 7 draws. Win=3 draw=1 why not: print(((18-7)*3)+7)
5 odpowiedzi
+ 6
Jaxon Crow ,
the logic can be build like this:
1. the team WON 18 games and is getting 3 points for each game.
multiply these values
2. the team also ended 7 games as a DRAW and is getting 1 point for each game.
multiply these values
3. build the total sum of the points from games won (1.) and games that ended as a draw (2.).
4. ouput the total result.
+ 3
Please always tag the language you're asking about.
https://code.sololearn.com/W3uiji9X28C1/?ref=app
0
to multiply in python use * print(((18-7)*3)+7)
0
Sorry, I did originally, mistyped it only in the post here. It still rejected the line.
0
Carefully reread the task description.