Then read this first. You're doing several things wrong there, for instance, your function friend is called in the tests with a list as argument. All your code should be inside it, unless you write another small function to decide if a name is a friend or not, but that function shouldn't be friend
It's still a good job!
Just keep practicing! you'll do those one liners too;) just dont give up:))
Thanks for actually marking it as a question because it is one :-D
Then read this first. You're doing several things wrong there, for instance, your function
friend
is called in the tests with a list as argument. All your code should be inside it, unless you write another small function to decide if a name is a friend or not, but that function shouldn't befriend