Replacing Connect Four code with a for loop
I think like this:
print(&quot;   0   1   2   3   4   5   6&quot;)
for row in board:
    print(&quot; &quot; + &quot; | &quot;.join(row))
    print(&quot;  ---+---+---+---+---+---+---&quot;)
print()

You could put the whole thing into a single call to print by using &quot;\n&quot;.join and more string concatenation, but that would most likely make it a lot less readable.