remove duplicate Algorithm
Duplicate content is a term used in the field of search engine optimization to describe content that looks on more than one web page. When multiple pages contain essentially the same content, search engines such as Google and Bing can penalize or discontinue displaying the copying website in any relevant search outcomes.
# Created by sarathkaul on 14/11/19
def remove_duplicates(sentence: str) -> str:
"""
Reomove duplicates from sentence
>>> remove_duplicates("Python is great and Java is also great")
'Java Python also and great is'
"""
sen_list = sentence.split(" ")
check = set()
for a_word in sen_list:
check.add(a_word)
return " ".join(sorted(check))
if __name__ == "__main__":
print(remove_duplicates("INPUT_SENTENCE"))