hop of those help? You need 3 elements: the element to be added, the list without element, the concatenation of these. Then you can't do with 2 elements only. Note that append([Item], List, Result) can be more conveniently written [Item|List] = Result, and Item will be the first element of Result. Then you're not appending. You can do with append(List, [Item], Result)
How to append an element in a list a declared in global , while list.append() statement is inside a function
I hope this helps you . corrected code for query , both var and result are global variables which are required to be accessed inside a function , Remove the word global from your append statement. You have:
Append a list to a list: AttributeError: 'NoneType' object has no attribute 'append'
With these it helps Tuples are immutable meaning they can't be changed unless reassigned. You can however add tuples to a list because lists are mutable, meaning they can be changed. You need to edit the order of your append.