diff --git a/solutions/object_oriented_design/parking_lot/parking_lot.py b/solutions/object_oriented_design/parking_lot/parking_lot.py index 08852d9d..3052738a 100644 --- a/solutions/object_oriented_design/parking_lot/parking_lot.py +++ b/solutions/object_oriented_design/parking_lot/parking_lot.py @@ -111,7 +111,7 @@ class ParkingSpot(object): self.vehicle = None def is_available(self): - return True if self.vehicle is None else False + return self.vehicle == None def can_fit_vehicle(self, vehicle): if self.vehicle is not None: