Question: For some reason I can't append the lines of my file to an empty list. "data1.txt" is just a file full of lines and lines of numbers. Calling this function returns an empty list.

```
filename = 'data1.txt'    
def get_data(filename):
        with open(filename, 'r') as qfile:
            data = qfile.read().splitlines()
            float_list = []
            for line in data:
                float_list.append(float(line))
            return float_list

```

Answer: 
```
>>> def get_data(filename):
...     with open(filename, 'r') as qfile:
...         return map(float, qfile)

```
try with

```
filename = 'data1.txt'    
def get_data(filename):
    with open(filename, 'r') as qfile:
        float_list = []
        for line in qfile:
            float_list.append(float(line))

    return float_list

```

Note: you have a few problems in your code in terms of mixed indentation (spaces and tabs)