convert a list of strings to either int or float,[(float(i) if '.' in i else int(i)) for i in s]