Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Surround the thing you're appending in brackets: I think you're doing
.append(x for x...)
, but it should be.append([x for x...])
. The first is generator expression, and the second one is a list.Well, I don't see where you declared
new_names
, so it's not surprising. But ok, let's say you did. Then,new_names = new_names.append(...)
- I really don't know how this should work, and it probably doesn't. My guess is that.append()
returnsNone
, so you re-assignednew_names
toNone
.You need to return the result, not print it.