Convert Rectangular Array of Numbers into a List in Python

Viewed 23

I want to convert a rectangular arrangement of numbers as the one below into a nested list(with four elements that also contain four elements), without having to do it manually by adding brackets and commas:

               2   2   3   4
               4   5   1   7
               3   1   2   4
               3   4   5   2 

This data is currently stored in microsoft excel. I copied it from excel and pasted it on my sublime text editor.

0 Answers
Related