Python attribute Error

PLease suggest what is wrong with this code

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.

Thanx Buddy… :grinning:

1 Like