AttributeError: 'list' object has no attribute 'join'

Correct way:

",".join([1, 2, 3])

Wrong way:

[1, 2, 3].join(",")