42 for the universe, which means I want to use the opportunity of creating this repository to learn all the skills of python!
All the tricks in the repo are built on the idea that you have a deep understanding of the basic operations of Python, such as string, condition, loop, list, dict, tuple, and so on.
All tricks are based on the python 3 implementation.
Tricks | Simple Demo |
---|---|
List & Dict & Set Comprehensions | ![]() |
Lambda Functions | ![]() |
Map | ![]() |
Filter | ![]() |
Zip | ![]() |
Reduce | ![]() |
*args & **kwargs | ![]() |
Generator (map, filter, zip) | ![]() |
Closure & Decorator | ![]() |
Context Manager | ![]() |
fstring
add _
for...else
set for searching
swap
annotation, typing, (...), pass
OOP static, class, nonlocal, global, abstract methods private, property, dataclasses
vscode python file, timeit, time
numba