English, asked by aswinrenga, 2 months ago

how is clear() function different from del <dict> statement​

Answers

Answered by BrycenCabitac
6

Answer:

Clear () function delete the all keys and values in the dictionary and leave the dictionary empty. While del <dict> delete the complete dictionary when we want to find deleted dictionary then it will give error that <dict> not defined.

Explanation:

Answered by MonosnanDas
3

Answer:

Clear () function delete the all keys and values in the dictionary and leave the dictionary empty. While del <dict> delete the complete dictionary when we want to find deleted dictionary then it will give error that <dict> not defined.

Similar questions