Untitled
unknown
plain_text
a year ago
132 B
8
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)