0% found this document useful (0 votes)
8 views1 page

List Questions

Uploaded by

newmetallovers
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

List Questions

Uploaded by

newmetallovers
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

What are lists

create an empty list


create a list with items
create a list with heterogenous items
what are the limitations when using heterogenous items in a list
create lists from existing sequence. give examples using all types of sequences
create a list from keyboard input from user
What does eval() do ? How can it be used in lists?
Similarities with lists and strings with full set of examples
Differences between lists and strings with full set of examples
How to traverse a list? Use for - in and for - range
How to join two lists
Explain concat in lists
Explain append vs extend in lists
Explain replication of lists
Slicing of lists
using slices to modify lists
how to update an item in the list
how to delete items from a list
use del, remove and variations in remove
how to use pop()
How to make a shallow copy and True copy in lists
what are the methods in list
explain index
insert method
clear()
count()
reverse()
sort() and corner cases to watch out for

You might also like