Skip to content

Commit c4f7967

Browse files
authored
Use assert instead of print
1 parent 5f55e6e commit c4f7967

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

11_generators.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ def next_num(i):
44

55
iterator = next_num(10)
66

7-
print(next(iterator)) # 10
8-
print(next(iterator)) # 11
9-
print(next(iterator)) # 12
7+
assert next(iterator) == 10
8+
assert next(iterator) == 11
9+
assert next(iterator) == 12

0 commit comments

Comments
 (0)