What have I done wrong? it always says "18 * 3 is not callable", btw I'm new to this. | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 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))

2nd Sep 2021, 2:46 PM
Mischief
7 Antworten
+ 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))
2nd Sep 2021, 2:53 PM
Shahrull Fytri
Shahrull Fytri - avatar
+ 2
https://code.sololearn.com/cmzkZS58yKhU/?ref=app see this because you didn't tell in detail what to do?
2nd Sep 2021, 2:58 PM
<★Shaurya Chauhan★>(ACTIVE AGAIN✌😇🙃)
<★Shaurya Chauhan★>(ACTIVE AGAIN✌😇🙃) - avatar
+ 2
In that case you have to add a plus sign between the two multiplications.
2nd Sep 2021, 2:59 PM
Simon Sauter
Simon Sauter - avatar
+ 1
Oh that mean you miss +. I assume it ask you to print the total score print((18 * 3) + (7 * 1))
2nd Sep 2021, 2:58 PM
Shahrull Fytri
Shahrull Fytri - avatar
+ 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 "*".
2nd Sep 2021, 4:08 PM
Simon Sauter
Simon Sauter - avatar
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.
2nd Sep 2021, 2:55 PM
Mischief
0
thanks guys it really helped me a lot
2nd Sep 2021, 2:59 PM
Mischief