From d3a157d106da248646a3877f9ed7a28f2ac69bdf Mon Sep 17 00:00:00 2001 From: Akshitha Kumbam <69581478+Akshi22@users.noreply.github.com> Date: Wed, 15 Mar 2023 21:20:41 +0530 Subject: [PATCH] Update parking_lot.py Updated [return True if {boolean expression} else False] --> {boolean expression} --- solutions/object_oriented_design/parking_lot/parking_lot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: