3/18 append function help


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

n = [1, 3, 5]

Append the number 4 e

print n

Help please!


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.