I want to do something like this:
myList = [10,20,30] yourList = myList.append (40)
Unfortunately, list append does not return the modified
Just to expand on Storstamp's answer
You only need to do myList.append(40)
It will append it to the original list,now you can return the variable containing the original list.
If you are working with very large lists this is the way to go.