Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'int' object is not callable exception

Tags:

python

Can't find what's wrong with this code. Can someone help me to fix this, please ?

def f(x):
    a = (-5 * (int(x) ** 5) + 69 (int(x) ** 2) - 47)
    return a

print f(0)

Thanks in advance !

like image 955
rzqr Avatar asked Mar 09 '26 21:03

rzqr


1 Answers

An operator is needed between 69 and (int(x) ** 2).
If you meant to use multiplication, then you need to use * explicitly

like image 130
gefei Avatar answered Mar 11 '26 11:03

gefei



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!