Skip to content

Commit ffd4733

Browse files
committed
delete a space betwen key name and colon from test.py of exercise 10.1
1 parent d9a4e02 commit ffd4733

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

exercises/10.1-And_One_and_a_Two_and_a_Three/app.py

+6
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,10 @@
55
}
66

77
# Your code here
8+
keys = list(contact.keys())
9+
values = list(contact.values())
10+
i = 0
811

12+
for key in keys:
13+
print(key + ': ' + values[i])
14+
i = i + 1

exercises/10.1-And_One_and_a_Two_and_a_Three/test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
def test_dict(capsys, app):
66
app()
77
captured = capsys.readouterr()
8-
assert "fullname : Jane Doe\nphone : 321-321-4321\nemail : [email protected]\n" in captured.out
8+
assert "fullname: Jane Doe\nphone: 321-321-4321\nemail: [email protected]\n" in captured.out
99

1010
@pytest.mark.it("Use the for loop")
1111
def test_for_loop():

0 commit comments

Comments
 (0)