How to convert an input 2D array to a 2D list?
For example:
The user inputs: [[2,3], [3,4]]
This is read as a string when I read it from standard input using input()
method. But I want it as a list of lists in python.
for eg: a = [[2,3], [3,4]]
type(a)
<class, 'list'>
Is there an inbuilt function or library for it? How to do it? I am trying but can't resolve it.