Im really get confused.
Im solving PySchool Practices for university and get a problem at Topic 13: Question 2.
I need to: 
**Create a function that appends the name and email to the end of a named file.**

Code i use:

```
    # Create a function that appends the name and email to the end of a named file.
def addEmail(filename, name, email):
    f = open(filename, 'a') # replace the mode
    f.write("\n"+name+' '+email)
    # Append name and email, each record should end with '\n'.
    f.close()
    # close file
    return f # do not remove this line 

```

I get:
[Error](https://i.stack.imgur.com/dSM08.png)
I cant understand where is my mistake.Please help.