clear method

On this page

clear

Removes all words from this SynonymDictionary object.

def clear(self):
    ...

Example

if synonyms.count > 0:
    # Removing all synonyms from the dictionary
    synonyms.clear()

See Also

On this page