Shape and Reshape

  • + 2 comments

    As @aravindsfirst said, the split separates by space. Then you end up with characters which you must convert to integers. You do that by mapping the function int.

    Then you just convert it to a list.