I am getting an error from this Python code:
with open(\'names\') as f: names = f.read() names = names.split(\'\\n\') names.pop(len(names) - 1) n
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()