Toggle navigation
English
Chinese
Python Sandbox
Please refer to
this tutorial
to find more details on the following codes.
# # List-related functions # # Function - index() x=['a','b','c','d'] print(x.index('c')) # Function - append() x=['a','b','c','d'] x.append('e') print(x) # Function - remove() x=['a','b','c','d'] x.remove('a') print(x) # Keyword - del x=['a','b','c','d'] del x[2] print(x)
Run
List