+ 1

2.1 soccer game test.

18 games. 7 draws. Win=3 draw=1 why not: print(((18-7)*3)+7)

25th Nov 2021, 3:18 AM
Jaxon Crow
5 Réponses
+ 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.
25th Nov 2021, 3:56 PM
Lothar
Lothar - avatar
+ 3
Please always tag the language you're asking about. https://code.sololearn.com/W3uiji9X28C1/?ref=app
25th Nov 2021, 3:31 AM
Simon Sauter
Simon Sauter - avatar
0
to multiply in python use * print(((18-7)*3)+7)
25th Nov 2021, 3:22 AM
Jairo Soto
Jairo Soto - avatar
0
Sorry, I did originally, mistyped it only in the post here. It still rejected the line.
25th Nov 2021, 3:25 AM
Jaxon Crow
0
Carefully reread the task description.
25th Nov 2021, 3:31 AM
Simon Sauter
Simon Sauter - avatar