class lights(object):
l1 = lights()
l1.color = "blue"
l1.quantity = 50
l2 = lights()
l2.color = "red"
l2.quantity = 50
AttributeError Traceback (most recent call last)
<ipython-input-11-1ae6b23b2a3d> in <module>
----> 1 class lights(object):
2 l1 = lights()
3 l1.color = "blue"
4 l1.quantity = 50
5
in lights() 1 class lights(object): 2 l1 = lights() ----> 3 l1.color = "blue" 4 l1.quantity = 50 5
AttributeError: 'NoneType' object has no attribute 'color'