Not turning into float:

```
def floaty(s):
try:
    k = 0
    for elem in s:
        if 0 <= float(elem) <= 1:
            k += 1
    if k == len(s):
        for elem in s:
            elem = float(elem)
        return s
    else:
        return None
except ValueError:
    return None

```

type of elements of the list [0.1, 0.2] is still str, not float

```
    for elem in s:
        elem = float(elem)
    return s

```

why doesn't this work?