PROGRAMMING
GAME DEVELOPMENT
Lists are used when we want to keep a set or sequence of related data together, like names of students, available subjects etc. In this Coding example, we will learn how to create a list, how to use indexing to access list elements, how to derive a list from an existing list and how to add more elements to an existing list.
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.php