From 4a7d2e45251750c9c7a35f70f2bdba3410510695 Mon Sep 17 00:00:00 2001 From: cclauss Date: Mon, 7 May 2018 03:25:31 +0200 Subject: [PATCH] Adding missing self variable (#158) --- 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 12fcd24..08852d9 100644 --- a/solutions/object_oriented_design/parking_lot/parking_lot.py +++ b/solutions/object_oriented_design/parking_lot/parking_lot.py @@ -64,7 +64,7 @@ class ParkingLot(object): self.levels = [] # List of Levels def park_vehicle(self, vehicle): - for level in levels: + for level in self.levels: if level.park_vehicle(vehicle): return True return False