Distinct words

Write codeEasy10 min

Your task

A support dashboard estimates how varied a ticket's wording is. Given the ticket text, words separated by single spaces, possibly empty, return the number of distinct words when compared case-insensitively. For example, 'The printer THE PRINTER again' has 3 distinct words: 'the', 'printer', and 'again'.

Examples

count_unique_words(ticket: str) -> int
Example 1
Inputcount_unique_words("The printer THE PRINTER again")
Output3