Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a929ace

Browse files
committed
15.2-Parking_lot_check
1 parent d4ea9ab commit a929ace

File tree

2 files changed

+10
-1
lines changed
  • .learn/resets/15.2-Parking_lot_check
  • exercises/15.2-Parking_lot_check

2 files changed

+10
-1
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
parking_state = [
2+
[1,1,1],
3+
[0,0,0],
4+
[1,1,2]
5+
]
6+
7+
#Your code go here:
8+
9+

‎exercises/15.2-Parking_lot_check/test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def test_variable_exists(app):
1111
@pytest.mark.it('The function get_parking_lot should return an object with correct values')
1212
def test_variable_exists(app):
1313
value1 = [[1,1,1], [0,0,0], [1,1,2]]
14-
result1 = {'total_slots': 9, 'available_slots': 1, 'occupied_slots': 5}
14+
result1 = {'total_slots': 6, 'available_slots': 1, 'occupied_slots': 5}
1515
try:
1616
assert app.get_parking_lot(value1) == result1
1717
except AttributeError:

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /