Diccionarios
Requisitos de finalización
15. Resumen de métodos y funciones
Listado de métodos y funciones relacionadas con Diccionarios. Algunas fueron vistas en este capítulo.
- clear() Removes all Items
- copy() Returns Shallow Copy of a Dictionary
- fromkeys() creates dictionary from given sequence
- get() Returns Value of The Key
- items() returns view of dictionary's (key, value) pair
- keys() Returns View Object of All Keys
- popitem()Returns & Removes Element From Dictionary
- setdefault() Inserts Key With a Value if Key is not Present
- pop()removes and returns element having given key
- values()returns view of all values in dictionary
- update()Updates the Dictionary
- any()Checks if any Element of an Iterable is True
- all()returns true when all elements in iterable is true
- ascii()Returns String Containing Printable Representation
- bool()Converts a Value to Boolean
- dict()Creates a Dictionary
- enumerate()Returns an Enumerate Object
- filter()constructs iterator from elements which are true
- iter()returns an iterator
- len() Returns Length of an Object
- max() returns the largest item
- min() returns the smallest value
- map() Applies Function and Returns a List
- sorted() returns a sorted list from the given iterable
- sum() Adds items of an Iterable
- zip()Returns an iterator of tuples
Se puede ver ejemplos en:
https://www.programiz.com/python-programming/methods/dictionary