Skip to content

Python attribute Error #21458

Discussion options

You must be logged in to vote

The definition of the increase function is indented one level too much, so it’s defined inside the Employee constructor (__init__). That makes the function a local variable inside the constructor, not accessible anywhere else.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants