Challenge yourself

Beginner
Intermediate
Expert

class Laptop:
    """Represents a laptop.

    attributes: brand: str, ram: int (in GB)
    """



Write a Laptop method, print_info, that prints laptop's information in the following format:

    brand - RAMGB
Example:

    Dell - 16GB


Create a laptop, set its attributes and call print_info


ⓘ