0
why won't this code run
class Rectangle: def __init__(self, width, height, color): self.width = width self.height = height self.color= color rect = Rectangle(7, 8, red) print(rect.color)
2 Respuestas
+ 7
You forgot the quote marks surrounding red.
0
Thanks