+ 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.
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))
+ 5
18 wins, 3 points each:
18 * 3
7 draws, 1 point each:
7 * 1
So total points:
(18 * 3) + (7 * 1)
+ 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))
+ 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
+ 2
I just checked. My solution passes the test.
+ 2
Yeah you can be right, this question can be understood 2 ways
+ 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)
+ 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
+ 2
Your welcome
+ 2
But please mark Simon Sauter 's answer as best
+ 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))
+ 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.
+ 1
Thank you so much
+ 1
Done
+ 1
I like this š discussion. š