get it on google playCreated with Sketch.
Python> Classes

Classes

Classes, are like templates for objects of a particular kind.

class Car:
  wheels = 4
  def start_engine(self):
    print("Vroom!")

Defining a class doesn't create an object, though. In order to do that, we need to create an instance of a class.

class Car:
  wheels = 4
  def start_engine(self):
    print("Vroom!")

my_car = Car() 
TRY IT ON THE APP