I have a lots of list of strings that look similar to this:
list = ['4', '-5', '5.763', '6.423', '-5', '-6.77', '10']
I want to convert it to a list of ints (or doubles) but the -
keeps producing an error.
I have a lots of list of strings that look similar to this:
list = ['4', '-5', '5.763', '6.423', '-5', '-6.77', '10']
I want to convert it to a list of ints (or doubles) but the -
keeps producing an error.
And don't use
list
as a variable namefor Python 3: