+ 1

A soccer team have played 18 games and won and they had 7 game as a draw each win is 3 point and every draw is 1

Hello. Peace be with everyone I have been trying to solve this question for 40 min and this is what i did print (18 * (3 + 7 ) print (61) and im still getting it wrong can someone explain to me what im doing wrong and show me the right way i also tried this print ( 18 * ((3 +7 ) print (61) and also this ( 18 * 3 ) ( 7 = 1 ) print ( 61) and still wrong im not good with math and im NEW to code so i don't know what is wrong.

11th Oct 2021, 4:42 PM
Gto Gtom
15 Respostas
+ 2
Illuminati_Programmer it says "they played 18 games and won". To me that means they won 18 games. So the solution would be print((18*3)+(7*1))
11th Oct 2021, 5:56 PM
Simon Sauter
Simon Sauter - avatar
+ 5
18 wins, 3 points each: 18 * 3 7 draws, 1 point each: 7 * 1 So total points: (18 * 3) + (7 * 1)
11th Oct 2021, 4:45 PM
Simon Sauter
Simon Sauter - avatar
+ 3
You are thinking wrong Simon Sauter : they played 18 games, 7 of them was draw - > 7*1 = 7 so the reaming 18-7=11 is the number of the matches they won, so the score they get is : (7*1)+(11*3) = 40 in coding this is as follows: print(7+(11*3))
11th Oct 2021, 5:46 PM
Ocram Co
Ocram Co - avatar
+ 2
thanks for helping. I try it but it says test case #1 this test case is hidden . I put print ( 18 * 3) + (7 * 1) and i try (18 *3 ) + (7 * 1) print (61). Im going crazy
11th Oct 2021, 4:56 PM
Gto Gtom
+ 2
I just checked. My solution passes the test.
11th Oct 2021, 5:59 PM
Simon Sauter
Simon Sauter - avatar
+ 2
Yeah you can be right, this question can be understood 2 ways
11th Oct 2021, 6:05 PM
Ocram Co
Ocram Co - avatar
+ 2
1 month = 30 days 1 day = 24 hours 1 hour = 60 minutes 1 minute = 60 seconds So 1 month = 30 * 24 * 60 * 60 seconds In coding: print(30 * 24 * 60 * 60)
11th Oct 2021, 8:02 PM
Ocram Co
Ocram Co - avatar
+ 2
Also if you want to get the seconds in a specific month like february just change the number 30 to 28 or the days in whatever month you are interested in
11th Oct 2021, 8:04 PM
Ocram Co
Ocram Co - avatar
+ 2
Your welcome
11th Oct 2021, 8:53 PM
Ocram Co
Ocram Co - avatar
+ 2
But please mark Simon Sauter 's answer as best
11th Oct 2021, 8:54 PM
Ocram Co
Ocram Co - avatar
+ 1
Thanks to everyone it worked when i try print ((18 * 3 ) + (7 * 1)) What does this mean (( why did it work when i try ((18*3) + (7*1))
11th Oct 2021, 6:12 PM
Gto Gtom
+ 1
Thanks to everyone who helped. Can you show me the way to find how many second are in a month. I can do it on a paper with a pencil but not in code. I will try it before seeing the right way.
11th Oct 2021, 6:28 PM
Gto Gtom
+ 1
Thank you so much
11th Oct 2021, 8:52 PM
Gto Gtom
+ 1
Done
11th Oct 2021, 8:55 PM
Gto Gtom
+ 1
I like this šŸ˜Ž discussion. šŸ˜
12th Oct 2021, 5:05 PM
Shubham Bhatia
Shubham Bhatia - avatar