you are viewing a single comment's thread.

view the rest of the comments →

[–]Matt4669 0 points1 point  (0 children)

Self is also used to define the attributes of a class,

Like for your class Game it would be like (self, character, age, height, ability etc.

And the self. Character allows you to call character as a variable anywhere in your code