Update parking_lot.py

Updated [return True if {boolean expression} else False] --> {boolean expression}
pull/755/head
Akshitha Kumbam 2023-03-15 21:20:41 +05:30 committed by GitHub
parent 2d8231663f
commit d3a157d106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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: