Python attribute Error #21458
Answered
by
airtower-luna
Manishroy1205
asked this question in
General
-
PLease suggest what is wrong with this code |
Beta Was this translation helpful? Give feedback.
Answered by
airtower-luna
Mar 2, 2021
Replies: 2 comments
-
The definition of the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected
-
Thanx Buddy… 😀 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The definition of the
increase
function is indented one level too much, so it’s defined inside theEmployee
constructor (__init__
). That makes the function a local variable inside the constructor, not accessible anywhere else.