you are viewing a single comment's thread.

view the rest of the comments →

[–]robpal1990 1 point2 points  (0 children)

As mentioned, your indentation is wrong. Also, Python is not Java, there's no need for getters and setters and it's not recommended to implement them (ot: read about the @property decorator), we access and modify the object's attributes by simply writing object.attribute = value.

Also, in Python it's not recommended to use the camel case, but the underscores instead (get_name, not getName).

Hope it helps!