python with dictionary very simple
\n\n\n\npython\nclass ParkingSystem:\n\n    def __init__(self, big: int, medium: int, small: int):\n        self.slots = {\n            1: big,\n            2: 
\n\n\n\n```python\nclass ParkingSystem:\n\n    def __init__(self, big: int, medium: int, small: int):\n        self.slots = {\n            1: big,\n            2: medium,\n            3: small,\n        }\n\n    def addCar(self, carType: int) -> bool:\n        if self.slots[carType]:\n            self.slots[carType] -= 1\n            return True\n        return False\n```
['Python', 'Python3']