Skip to content

Commit 9295014

Browse files
committed
while loops exercise complete
1 parent 510fa80 commit 9295014

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

032_while_loops.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,10 @@
4949
# => ['cats', 'cats', 'cats']
5050

5151
def add_cats_repeatedly(word_list, count):
52-
# ...
52+
i = 0
53+
while i < count:
54+
word_list.append("cats")
55+
i += 1
5356
return word_list
5457

5558
check_that_these_are_equal(

0 commit comments

Comments
 (0)