SyntaxFix
Write A Post
Hire A Developer
Questions
list is mutable
Change
last_list=last_list.append(p.last_name)
to
last_list.append(p.last_name)
will work