Run benchmarks with timeit

https://docs.python.org/3/library/timeit.html

$ python3 -m timeit '"-".join(str(n) for n in range(100))'

>>> timeit.timeit('"-".join(str(n) for n in range(100))', number=10000)

Ruby’s binding.pry in Python

import code; code.interact(local=dict(globals(), **locals()))

Start a web server

This command serves the passed-in directory on port 8000 via http:

python3 -m http.server 8000 -d .