Python konvertieren String in Float Array
numbers = ['1', '2', '3.2']
numbers = list(map(float, numbers))
Edi Sugiarto
numbers = ['1', '2', '3.2']
numbers = list(map(float, numbers))
# Use the function float() to turn a string into a float
string = '123.456'
number = float(string)
number
# Output:
# 123.456
score = 89
score = str(score)