0

It's probably obvious that I'm a beginner to python, and even newer to stack overflow, so apologies for any mistakes in this post. I have an array of 35 indexes (it starts at zero), it's a 'screen' 9 by 4. I want to print the screen, and have a new line after every row.

screen = ["-", "-", "-", "-", "-", "-", "-", "-", "-",
          "-", "-", "-", "-", "-", "-", "-", "-", "-",
          "-", "-", "-", "-", "-", "-", "-", "-", "-",
          "-", "-", "-", "-", "-", "-", "-", "-", "-"]

I assume I can do this using a for loop somehow, but I'm not experienced enough to do it without some help.

  • The [addressing formula](https://en.wikipedia.org/wiki/Array_data_structure#Element_identifier_and_addressing_formulas) being used does not affect the *number* of indices or elements there are — which is 36 in this case. – martineau Jan 12 '22 at 19:16

0 Answers0