The append function

If you want to just add one more thing to that list, you can use the append function. So I just want to stick the number 9 at the end, there we go:

x.append(9)
x

The output of the above code is as follows:

[1, 2, 3, 4, 5, 6, 7, 8, 9]
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.188.202.155