Conteúdo do Curso
Python Data Structures
Python Data Structures
Popitem() Method
Dictionaries also have a popitem()
method that removes and returns the last key-value pair.
Tarefa
Consider the dictionary below:
Remove the last three entries from the dictionary using the popitem()
method.
Tudo estava claro?
Seção 2. Capítulo 7
Conteúdo do Curso
Python Data Structures
Python Data Structures
Popitem() Method
Dictionaries also have a popitem()
method that removes and returns the last key-value pair.
Tarefa
Consider the dictionary below:
Remove the last three entries from the dictionary using the popitem()
method.
Tudo estava claro?
Seção 2. Capítulo 7