Cursos /
Python Data Structures
Popitem() Method
Dictionaries also have a popitem()
method that removes and returns the last key-value pair.
Tarea
Consider the dictionary below:
Remove the last three entries from the dictionary using the popitem()
method.
¿Todo estuvo claro?
Sección 2. Capítulo 7
Contenido del Curso
Python Data Structures
Python Data Structures
Popitem() Method
Dictionaries also have a popitem()
method that removes and returns the last key-value pair.
Tarea
Consider the dictionary below:
Remove the last three entries from the dictionary using the popitem()
method.
¿Todo estuvo claro?
Sección 2. Capítulo 7