Python: TypeError: object of type ‘NoneType’ has no len()

shuffle(names) is an in-place operation. Drop the assignment.

This function returns None and that’s why you have the error:

TypeError: object of type 'NoneType' has no len()

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)