How do I append something to the end of a list


#1

I want to know how to append "4" to the end of a list


#2

n = [1, 3, 5]

Append the number 4 here

n.append(4)
print n


#3

You just put the list and then do n.append(4). When you append, the number is at the end of the list