nums = [1,4,2,7,3,4,8,1]
sorted(nums)
# [1, 1, 2, 3, 4, 4, 7, 8]
names = ['aabb', 'abc', 'bdf', 'acd', 'a23b', 'Aabb', 'aBc']
sorted(names)
# ['Aabb', 'a23b', 'aBc', 'aabb', 'abc', 'acd', 'bdf']
set(nums)
# {1, 2, 3, 4, 7, 8}
# 중복 배제, 순서 없음
ninjas = {'jack':'rainbow', 'mel':'white', 'jane':'white'}
set(ninjas.values())
# {'white', 'rainbow'}
참고
https://www.youtube.com/watch?v=UirJNoJ9KT8&list=PL4cUxeGkcC9idu6GZ8EU_5B6WpKTdYZbK&index=15