This may have been answered before but it's hard to look up precisely. I have a list of strings where the strings have lists in them (or they would be lists if they were not in strings). I want to return a list of lists.
m,x,y,z may or may not have been defined already
Here is what I might start with:
old_list = ['[1,2,m]','[4.1,3.5,5]','[x,y,z]', '["t","u","v"]']
Here is what I would want (depending on whether m,x,y,z have been defined):
new_list = [[1,2,'m'],[4.1,3.5,5],['x','y','z'],['t','u','v']]
new_list2 = [[1,2,m],[4.1,3.5,5],[x,y,z],['t','u','v']]