Resolved: Type error found
This code generates the following error when calling balance with ().
TypeError: 'int' object is not callable
1 answers ( 1 marked as helpful)
Hey Mohammad,
Thank you for reaching out!
Since balance
is a variable rather than a method, it shouldn't be followed by parentheses. Please study the code snippet below:
Kind regards,
365 Hristina