Why do I get an error after running my code to print and modify condition?
The steps must be followed in exactly the order asked for in the instructions, otherwise you’ll get errors saying that you didn’t print or change something properly.
In this order, we should:
conditioninstance variable by accessing it using dot notation, like this:
- Change the value stored in
conditionby using the method we just created. To use an object’s method, simply use dot notation, like this:
my_car.method_name(). You don’t need to type anything else on the line other than that, since the method is just doing what it does (changing a value) and then moving on.
conditionone last time to see the change it made!