clear method

On this page

clear

Removes all words from a HomophoneDictionary object.

def clear(self):
    ...

Example

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

See Also

On this page