길/Python

List Functions

7he8oy 2021. 2. 10. 22:41


max(list): Returns the list item with the maximum value


min(list): Returns the list item with minimum value


list.count(item): Returns a count of how many times an item occurs in a list


list.remove(item): Removes an object from a list


list.reverse(): Reverses items in a list.

 

' > Python' 카테고리의 다른 글

dic.get(key [,default])  (0) 2021.02.11
try / except / finally / assert  (0) 2021.02.11
not sth in list / sth not in list  (0) 2021.02.10
True or False and True  (0) 2021.02.10
// - 나누셈 후 소수점 이하를 버리는 연산자  (0) 2021.02.09