3
I have a list x
, with 10 numbers, being all of them whole. I’d like to turn them all into numbers like float
, but I can’t perform that conversion.
Code:
lista = [1,2,3,4,5,6,7,8,9,10]
for i in acs:
acs[i]= float(i)
Besides that way, I also tried the following:
for i in acs:
i = float(i)
What I’m doing wrong in this code?