Source Code:
(back to article)
numbers = ['1', '2', '3', '4'] numbers = [float(x) for x in numbers] print(numbers)
Result:
Report an issue