There is a Small  difference between a Class and a Functions in python and it is just not only in the python it is there in every Oop Language.  A class is basically a definition of an Objects. While a function is a small piece of code.