Cursos /
Python Data Structures
Clear() Method
Just like in other data structures, the clear()
method completely wipes out all the elements. Let's dive into the example below.
Tarefa
You've got the set:
Your task is to erase all the items from this set.
Tudo estava claro?
Seção 4. Capítulo 6
Conteúdo do Curso
Python Data Structures
Python Data Structures
Clear() Method
Just like in other data structures, the clear()
method completely wipes out all the elements. Let's dive into the example below.
Tarefa
You've got the set:
Your task is to erase all the items from this set.
Tudo estava claro?
Seção 4. Capítulo 6