Untitled
unknown
plain_text
3 months ago
132 B
3
Indexable
numbers = [4, 2, 7, 4, 8, 2, 9, 1, 7] sorted_list = sorted(set(numbers)) print("Sorted list without duplicates:", sorted_list)
Editor is loading...
Leave a Comment
numbers = [4, 2, 7, 4, 8, 2, 9, 1, 7] sorted_list = sorted(set(numbers)) print("Sorted list without duplicates:", sorted_list)