In [1]:
l = [1,2,3,4,5]

In [2]:
l.append[6]


---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-2-90d68d45f0db> in <module>()
----> 1 l.append[6]

TypeError: 'builtin_function_or_method' object is not subscriptable

In [3]:
l.append(6)

In [4]:
l


Out[4]:
[1, 2, 3, 4, 5, 6]

In [6]:
l.count(5)


Out[6]:
1

In [7]:
help(l.count)


Help on built-in function count:

count(...) method of builtins.list instance
    L.count(value) -> integer -- return number of occurrences of value


In [ ]: