Skip to content

Commit b623a2f

Browse files
authored
Update Day_19.md
1 parent 3845e3a commit b623a2f

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Status/Day_19.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,21 @@ for sub in subjects:
203203
for obj in objects:
204204
print("{} {} {}".format(sub,verb,obj))
205205
```
206+
---
207+
```python
208+
209+
'''Solution by: popomaticbubble
210+
'''
211+
import itertools
212+
subject = ["I", "You"]
213+
verb = ["Play", "Love"]
214+
objects = ["Hockey","Football"]
215+
216+
sentence = [subject, verb, objects]
217+
n = list(itertools.product(*sentence))
218+
for i in n:
219+
print(i)
220+
```
206221

207222
---
208223

0 commit comments

Comments
 (0)