mirror of
https://github.com/donnemartin/system-design-primer.git
synced 2025-09-17 17:40:38 +03:00
Update parking_lot.py
Updated [return True if {boolean expression} else False] --> {boolean expression}
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user