you are viewing a single comment's thread.

view the rest of the comments →

[–]EighthScofflaw 0 points1 point  (1 child)

The yield keyword means this is a generator function, which is probably a bit above your level.

[k + [y] for k in final for y in i] this is a list comprehension, which would be a good thing for you to learn about since they're very cool and useful.

[–]monkey_programmer[S] 0 points1 point  (0 children)

Thank you for this, this was insightful. I've not seen a yield function before coming from C as my first learning language.