Write a program that reads a string from keyboard and prints the unique words. Your program should convert input string to lower case.
Source Code
text = input('Enter a string: ').lower()
words = text.split()
d = {}
for word in words:
if not word in d:
d[word]=0
print(word, end=" ")
Output