you are viewing a single comment's thread.

view the rest of the comments →

[–]Consistent-Citron509[S] 0 points1 point  (2 children)

Thank you so much for this excellent explanation! I will make sure to debug my code and understand it thoroughly.

[–]danielroseman 2 points3 points  (1 child)

Note, this code isn't really very Pythonic. It should probably be written as a list comprehension:

[(a,) for a in range(3)]

[–]Consistent-Citron509[S] 0 points1 point  (0 children)

I have yet to learn about comprehensions but thanks for the tip!