a = input('Input comma separated sequence of words ')
words = [word for word in a.split(",")]
print(",".join(sorted(list(set(words)))))
words = [word for word in a.split(",")]
print(",".join(sorted(list(set(words)))))
PROGRAM : a = input('Enter a string : ') b = input('Enter a string : ') c='' for i in a: if(i not in b):...
No comments:
Post a Comment