PROGRAMMING
GAME DEVELOPMENT
insert()
, reverse()
& sort()
There are many built-in functions available to operate on a list. In this code example we will see how we can use the insert()
method to add more items to list, reverse a list using reverse()
method and sort a list using the sort()
method.
Try changing the code as you like. Click the button, to Run the code again.
CODE SNIPPETS
;
to join two Executable Statements/
to break code into multiline codelen()
, find()
, replace()
& split()
zip
function to iterate over two Listsdel
, remove()
or pop()
insert()
, reverse()
& sort()
What is Studytonight?
Tutorials
Learn to Code
Interview Questions
/code/python/python-list-methods.php