Loading

Quipoin Menu

Learn • Practice • Grow

python-for-ai / Classes and Objects
exercise
1/5
Exercise 1Python-for-ai
Question

Create a class `Car` with attributes `brand` and `year`. Add a method `display()` that prints the car details. Create an object and call the method.