3/18 append function help


#1

I don't understand the append function.. what does it do?
This isn't working:

n = [1, 3, 5]

Append the number 4 e

n.append[4]
print n

Help please!


#2

Hi oraeng :grinning:

  1. You write the append function as follows n.append(4) not as n.append[4].
  2. What it does is basically insert the item in end of the list.

Hope that helps.