Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 373 Bytes

File metadata and controls

29 lines (19 loc) · 373 Bytes

AttributeError: 'tuple' object has no attribute 'append'

Reproduce

data = (1, 2)
data.append(3)

Error Message

AttributeError: 'tuple' object has no attribute 'append'

Fix

data = [1, 2]
data.append(3)

Reflection

Tried to use append on a tuple.

Reference