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