generate functionTue, 21 Mar 2023

привести строку текста к нижнему регистру и удалить дублирующие элементы

def unique_words(text): return " ".join(list(set(text.lower().split()))) unique_words("Строка со строкой в ней.")

Questions about programming?Chat with your personal AI assistant