+ 1
What have I done wrong? it always says "18 * 3 is not callable", btw I'm new to this.
print((18 * 3) (7 * 1))
7 Respostas
+ 3
may I know what you want this code to do? I mean.. the output that you expected from it
The thing is. this part is problematic -> (18 * 3) (7 * 1). If you notice, this part is as if you are calling a function.
If you want to print the result for both multiplication. change it to print((18 * 3), (7 * 1)). there is comma between 2 bracket.
If you want to multiply (18*3) with (7*1), you need to add * in between them.
print((18 * 3) * (7 * 1))
+ 2
https://code.sololearn.com/cmzkZS58yKhU/?ref=app
see this because you didn't tell in detail what to do?
+ 2
In that case you have to add a plus sign between the two multiplications.
+ 1
Oh that mean you miss +. I assume it ask you to print the total score
print((18 * 3) + (7 * 1))
+ 1
Calvin please read through the other answers before answering. Not only has the issue been resolved an hour ago, we have also established that the missing operator was "+" and not "*".
0
it says a team won 18 games while the remaining 7 games is a draw.
each winning game has 3 points while draw has 1.
0
thanks guys it really helped me a lot