Python - Custom Exceptions
Identify the error in the following code that tries to add a custom attribute
speed to object car:class Vehicle:
pass
car = Vehicle()
car["speed"] = 100
print(car.speed)