Challenge yourself

Beginner
Intermediate
Expert

class Car:
    """Represents a car.

    attributes: brand: str, mileage: int (in km)
    """



Write a Car method, display, that prints car's information in the following format:

    brand - mileage km
Example:

    Toyota - 55000 km


Create a car, set its attributes and call display