Conteúdo do Curso
Python Data Structures
Python Data Structures
Clear() Method
Dictionaries also offer a handy clear()
method that removes all items, leaving you with an empty dictionary. Here's how it works.
Let's put it to the test.
Tarefa
Consider the dictionary below:
Your task is to clear out all the items in this dictionary.
Tudo estava claro?
Seção 2. Capítulo 8
Conteúdo do Curso
Python Data Structures
Python Data Structures
Clear() Method
Dictionaries also offer a handy clear()
method that removes all items, leaving you with an empty dictionary. Here's how it works.
Let's put it to the test.
Tarefa
Consider the dictionary below:
Your task is to clear out all the items in this dictionary.
Tudo estava claro?
Seção 2. Capítulo 8