Update parking_lot.py
Updated [return True if {boolean expression} else False] --> {boolean expression}pull/755/head
parent
2d8231663f
commit
d3a157d106
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue