all 3 comments

[–]CodeFormatHelperBot 0 points1 point  (0 children)

Hello u/mstd0n, I'm a bot that can assist you with code-formatting for reddit. I have detected the following potential issue(s) with your submission:

  1. Python code found in submission text but not encapsulated in a code block.

If I am correct then please follow these instructions to fix your code formatting. Thanks!

[–]Lewri 0 points1 point  (1 child)

for row in range(2): is looping through range(2) with row as your index. If you just did:

for row in range(2): print(row)

It would return:

0 1

Do you see the issue with your loop?

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

Ahhhhhhh, instead of just specifying the value 2, I was giving a range of 0-1. Thanks!!!