In this repository I keep some tricks that are allowed in the Python language β€
The following is a list of all the scripts in this repository, open them to see the tricks:
-
Python's namedtuples can be a great alternative to defining a class manually
-
Measure the execution time of small bits of Python code with the "timeit" module
Some tricks were taken from RealPython - π Python Tricks π