Reply To: Classes and Objects in Python

Welcome to Python Land Forums The Python Tutorial Classes and Objects in Python Reply To: Classes and Objects in Python

#1902
guillaume
Participant

Hey Guys,

Really appreciate the feedback and help.
I really cant figure out what I am doing wrong I have tried to copy and pasting the whole thing and I have tried to type it line by line followed by hitting enter twice  after the car = Car() still getting this error

Traceback (most recent call last):
File “<stdin>”, line 1, in <module>
NameError: name ‘car’ is not defined

When entering car.increase_speed(10)