SyntaxFix
Write A Post
Hire A Developer
Questions
shuffle(names) is an in-place operation. Drop the assignment.
shuffle(names)
This function returns None and that's why you have the error:
None
TypeError: object of type 'NoneType' has no len()