write a Python program that accepts as comma separated of words as input and prints the unique word in sorted form alphanumerically
Answers
Answered by
0
Answer:
# make sure that the input is just words not numbers
var = input('enter some words with commas: ')
var2 = list(map(str, var.replace(',',' ')))
for item in var2:
print(item)
Explanation:
hope it helped ya!
Answered by
1
Answer:
Sample Words : red, white, black, red, green, black
Expected Result : black, green, red, white,red
Similar questions