Traceback (most recent call last):
File "python", line 11, in
File "python", line 8, in display_car
ValueError: unsupported format character 'w' (0x77) at index 16
I already don't know what am I doing at this exercise! Can someone explain what's wrong with ym code and how line continuation works? I've checked the forum but saw a lot of strange and confusing ways of describing the print statement!
Thanks in advance!
class Car(object): condition = "new" def __init__(self, model, color, mpg): self.model = model self.color = color self.mpg = mpg def display_car(self): return "This is a s% s% with s% MPG." % (self.model, self.color, str(self.mpg)) my_car = Car("DeLorean", "silver", 88) print my_car.condition print my_car.display_car()