Create an instance of a class

can some one help me with this…i don’t know what is wrong with this code…

Hi,

There should only be the pass key word inside of Car’s definition. Create an instance of Car outside of the class definition.

1 Like

you removed the pass, it should look like this buddy

class Car(object):
pass
my_car = Car()

1 Like

It should be like this
`

class Car(object):
pass

my_car = Car()

`

why do you create the instance outside the class definition?

it worked for me as well but somehow I can’t understand the whole point of “pass”
if you can explain it will be great :slight_smile:

class Car(object) :
    pass
my_car = Car()

this one worked for me … try your luck