I'm reading some numbers from a data source that represent xy coordinates that I'll be using for a TSP-esque problem. I'm new to python, so I'm trying to make the most of lists. After reading and parsing through the data, I'm left with a list of string lists that looks like this:
[['565.0', '575.0'], ['1215.0',
ValueError: invalid literal for int()
with base 10: '565.0'
x = [['565.0', '575.0'], ['1215.0', '245.0'], ['1740.0', '245.0']] x = [[int(float(j)) for j in i] for i in x]