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)

14th Aug 2016, 10:04 AM
Samrath Singh
Samrath Singh - avatar
2 Respuestas
+ 7
You forgot the quote marks surrounding red.
14th Aug 2016, 10:28 AM
Gershon Fosu
Gershon Fosu - avatar
0
Thanks
14th Aug 2016, 12:18 PM
Samrath Singh
Samrath Singh - avatar