Skip to content

badhonparvej481/Python_list_with_Comprehensions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Python_list

copy() -returns a shallow copy of the list

append() - adds an elements to the end of the list

extend()-adds all elements of a list to another list

insert()-inserts an item at the defined index

index() -returns an item at athe defined index

count() --returns the index of the first matched item

sort() --sort items in a list in ascending order

reverse() --reverse the order of items in the list

remove() --removes an item from the list

pop() ---returns and removes an element at the given index

clear() -removes all items from the list

Python_list comprehension

Releases

No releases published

Packages

No packages published