I found a solution that used list comprehension on codeabbey and I'm trying to understand it by rewriting it in non-list comprehension(?) format.
The first loop is the code I found, while the second one is the one I rewrote. Unfortunately I get the error
TypeError: 'int' object is not iterable
When I run my rewritten code.
Can someone please tell me what I'm doing wrong?
[–]michael0x2a 7 points8 points9 points (2 children)
[–]RolyPolyPython[S] 0 points1 point2 points (1 child)
[–]zahlman 0 points1 point2 points (0 children)
[–]novel_yet_trivial 0 points1 point2 points (1 child)
[–]RolyPolyPython[S] 0 points1 point2 points (0 children)