TypeError: ‘int’ object is not callable
a=1 b=2 c=3 int=4 d=int(a+b+c) print d
It gives the TypeError : int Object is not callable
python int object is not callable
TypeError: 'int' object is not callable
Why ?? is the error !!
int
is actually a function- only use int with
int(..)
values inside a brackets - You can’t
int
as a variable
a=1 b=2 c=3 intVal=4 d=int(a+b+c) print d
6
- If any program has the function name, You never put that function as a variable name.
- Maybe the same thing occurs with strings, floats, etc.;
- str object is not callable
- If You Get this sort of error, check any of your variables called the function name.