Given the following:
a = 23
b = 45
c = 16
round((a/b)*0.9*c)
Running the above outputs an error:
TypeError: 'int' object is not callable.
How can I round the output to an integer?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Somewhere else in your code you have something that looks like this:
Then when you write
that is interpreted as meaning a function call on the object bound to
round, which is anint. And that fails.The problem is whatever code binds an
intto the nameround. Find that and remove it.