GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — tutorials/python-tutorials/python_tips_list.py at main · ackercode/tutorials Expand file tree/ Copy pathpython_tips_list.pyMore file actions 11 lines (8 loc) · 214 Bytes / Copy pathpython_tips_list.pyFile metadata and controls11 lines (8 loc) · 214 Bytes 1 2 3 4 5 6 7 8 9 10 11 #Contando itens em uma lista =) #com Counter from collections import Counter minhas_lista = [10, 10, 5, 2, 9, 9, 9, 8] contar = Counter(minhas_lista) print(contar) print(contar[9]) print(contar.most_common(1)) |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |