Untitled
unknown
plain_text
10 months ago
132 B
6
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)