Mapa mental
Lists
Contenido del mapa
Lists
they hold lists, number, strings, objects and other lists
to create a new empty new list =()
you can use indices more than one time
when appending something to a list you add it to the end of the last in this way: clother () clothes.append(shirt) print clothes
you can use the index to exchange an item on the list
how to add a thing to a list
- apend(): to add an item to the end of the list extend(): adding lots of of items to the end of the list insert(): where you tell it where to add it and it adds it there
how to search a list
- index () method
how to delete something from a list
- remove () : delete an item you chose pop(): gives you the last item selected
Información
- Descripción
- Mapa Mental sobre Lists, creado por Andrea Rosado el 25/01/2018.
- Creado por
- Andrea Rosado
- Visitas
- 0
- Valoración