I made a function drive_car
inside of the class car
, but I do not know how to call it from the class it is defined in, outside of the class, while staying inside of its class.
class car:
def drive_car():
print("car go vroom vroom")
car.drive_car() # -- gives error message