PY
py
1
2
3
4
5
6
7
8
9
class Rectangle:
def __init__(self, width, height, color,):
self.width = width
self.height = height
self.color = color
rect = Rectangle(7, 8, "blue")
print(rect.height)
print (rect.color)
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run