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 ffd4733

Browse files
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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: test@test.com\n" in captured.out
8+
assert "fullname: Jane Doe\nphone: 321-321-4321\nemail: test@test.com\n" in captured.out
99

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

0 commit comments

Comments
(0)

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