I want to do something like this:
myList = [10,20,30] yourList = myList.append (40)
Unfortunately, list append does not return the modified
You only need to do myList.append(40)
It will append it to the original list, not return a new list.