If you have a list in python lets say:
list1 = ['(18,430)', '(19,430)', '(19,429)', '(19,428)', '(19,427)', '(18,426)',
'(17,426)', '(17,425)', '(17,424)', '(17,423)', '(17,422)', '(17,421)',
'(17,420)', '(17,421)']
and you want to convert each element of the list without string and create a new list lets say:
new_list = [(18,430), (19,430), (19,429), (19,428), (19,427), (18,426),
(17,426), (17,425), (17,424), (17,423), (17,422), (17,421),
(17,420), (17,421)]
How would you do this in python? Also would each of the individual values in
new_list
, for example (18,430)
, be considered a tuple?