Skip to content

HandBoy/daily-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

daily-code

Venv

virtualenv --python='/usr/bin/python3' daily

10 Python core modules you should familiarize yourself with after the passing the beginner stage:

[-] collections [-] itertools [-] logging [-] random [-] functools [-] threading [-] multiprocessing [-] contextlib [-] datetime [-] dataclasses [-] asyncio [-] typing [-] re [-] unittest [-] Pathlib [-] typing [-] urllib [-] unittest [-] asyncio [-] pickle [-] sqlite3 [-] pdb [-] re [-] glob [-] queue [-] Functional programming [-] Generators [-] Comprehensions [-] Doctest [-] Pytest [-] PDB [-] Emacs! [-] Regular Expressions [-] Objects [-] Refactoring [-] Iteration [-] Fixtures https://store.metasnake.com/advent-of-code-2020-walkthrough

def limit_occurrences(to_maximum,in_list):

result = []

for item in in_list:

if result.count(item) < to_maximum:

result.append(item)

return result

class DuplicateError(Exception):

pass

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages