simon kagwe wrote: > Hi, > > I have a string "distances = [[1,1,1,1],[2,2,2,2]]". I want to create a > variable called distances whose value is the list [[1,1,1,1],[2,2,2,2]]. How can > I go about that? s = "distances = [[1,1,1,1],[2,2,2,2]]" exec(s) - Josef