// answer = 60/5(7-5) =?6 ?24
a = 60
b = 5
c = 7
d = 5
res = a / b (c - d)
print(res)
Quote:Traceback (most recent call last):
File "C:/SharedFiles/Python/practice/temp.py", line 6, in <module>
res = a / b (c - d)
TypeError: 'int' object is not callable
What's up with this simple ecuation?
TIA
Well, what you've written suggests you're trying to useb
as a function, i.e b(c - d)
is interpreted as a function call. Did you mean to do a multiplication?
There is no operator betweec b and (c so you must be trying to call a function named b.
Yes, missing the '*'
Thank you.
It is a common mistake for students. In mathematics the juxtaposition of two terms means multiplication. An explicit operator is needed in programming languages.