Last answered:

15 Mar 2023

Posted on:

15 Mar 2023

0

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)
Instructor
Posted on:

15 Mar 2023

0

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

Submit an answer