i dont understand how functions are callable objects but integers are not
e.g.
a=5
a
this “a” is going to call the integer “5” right?
i dont understand how functions are callable objects but integers are not
e.g.
a=5
a
this “a” is going to call the integer “5” right?
hey @devchopra999_11c6416ab7f09bbf,
function are callable objects on calling they run a piece of code, and then based on that return something.
where as int is a datatype, a variable with datatype Integer , mean that variable is storing some value in Integer format. hence , when we print it , it fetches that value from memory and shows and similarly performs other operations too.
I hope this helps.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.