How to Create and Use Tuples in Python
www.makeuseof.com › how-to-create-and-use-tuplesMar 12, 2021 · AttributeError: 'tuple' object has no attribute 'append. Again, you can use our hack (using lists) to deal with this. First, convert the tuple into a list. Then add new elements to the list. Finally, convert the list to a tuple. Note: append() method is used in Python to add a new element to the end of the list. tup1 = ( 1, 2, 3 )