What is the difference between using,(+, +=, .append) in the functions? I know that when I write mylist= mylist + [6, 7] is the same as when I write mylist+=[6, 7] as it's a shortcut. However, when i used + operator in proc function it didn't access the actual list directly so the actual list hasn't been changed, but when i used += operator it could access the actual list directly and changed it and also .append could access the actual list directly
I want to know the reason for this, + operator couldn't access the actual list and += operator could, however "mylist +=" is like a shortcut for "mylist=mylist+"