Write a Python program to remove spaces from a given string using set
Topic: Write a Python program to remove spaces from a given string using set
Solution
def remove_duplicate(str1): list_str = str1.split() return "".join(set(list_str))
List all Python Programs