Welcome

sampleqa.in tutorials, python tutorial

Python tutorial


Python List Methods

methoddescription
clearremoves all elements
countdoes shallow-copy
append
copygets value for a given key
extendreturns set, where each element in the set is a tuple,each tuple has key and value pair
indexreturns keys
insertremoves element for a given key
removeremoves last element in the dictionary, i.e last key-value pair
reverse
sort

ADS