Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wwwanlingxiao
system-design-primer
Commits
4a7d2e45
Commit
4a7d2e45
authored
May 07, 2018
by
cclauss
Committed by
Donne Martin
May 06, 2018
Browse files
Adding missing self variable (#158)
parent
a70a8f3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
solutions/object_oriented_design/parking_lot/parking_lot.py
View file @
4a7d2e45
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment