Using dictionary to shorten lines of code
Code\n\nclass ParkingSystem:\n\n    def __init__(self, big: int, medium: int, small: int):\n        self.parking = {1: big, 2: medium, 3: small}\n\n    def addC
# Code\n```\nclass ParkingSystem:\n\n    def __init__(self, big: int, medium: int, small: int):\n        self.parking = {1: big, 2: medium, 3: small}\n\n    def addCar(self, carType: int) -> bool:\n        self.parking[carType] -= 1\n        return self.parking[carType] + 1 > 0\n\n\n# Your ParkingSystem object will be instantiated and called as such:\n# obj = ParkingSystem(big, medium, small)\n# param_1 = obj.addCar(carType)\n```
['Python3']