-
all_unique카테고리 없음 2022. 1. 28. 00:39
https://www.30secondsofcode.org/python/s/all-unique
all_unique - 30 seconds of code
Checks if all the values in a list are unique.
www.30secondsofcode.org
새로 알게된 것 :
set(list명) 을 하게되면, 중복값을 제거해준다.
따라서 len(lst) == len(set(lst))라면 중복값이 없다는 것을 알 수 있다.
반응형