You have now learned two ways to organise a program: as classes that hold changing state and offer methods, and as pure functions that transform data. Neither is better in general. They suit different problems, and Python is happy with both in one file. This lesson solves one small problem in each style, compares them honestly, and gives you rules of thumb for choosing, and for mixing.
More lessons in Complete Python Programming