0

I need to be able to convert the following list:

board = [0,0,0,0,0,0,0,  0,0,0,0,0,0,0,  0,0,0,0,0,0,0,  0,0,0,0,0,0,0,  0,0,0,0,0,0,0,  0,0,0,0,0,0,0]

into this:

board=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]]

but have absolutely no idea on how to do this!

For context, this is a project assignment that requires me to use the first list that has been assigned by our professor. It is not in the format that I need it to be to run on the program I've coded.

nadchos
  • 1
  • 2

0 Answers0