Check out example codes for "TypeError: descriptor 'extend' for 'list' objects doesn't apply to a 'str' object". It will help you in understanding the concepts better.

Code Example 1

muyt=["apple"'"banana","cherry"]
muyt.insert(1,"orange")

Learn ReactJs, React Native from akashmittal.com