lis = [1,2,3]
print(lis.append(4))
# Returns None
#############
lis = [1,2,3]
lis.append(4)
print(lis)
# Returns [1,2,3,4]
I found this code here but I don't understand the reasoning why .append() returns None. The person who answered said it was because
.append()changes the list in place and returnsNone.
But this doesn't make sense to me. The way I interpret the sample code blocks above is simply that you must first append to the list before you can rpint it, but then this goes against my understanding of order of evaluation when evaluating statements within statements.