The strong part of Python and other interpreted languages is an interactive shell. But there is an even more powerful tool - Jupyter notebook.
In a simple case it allows to:
- verify how some code works
- check hypothesis
- save these experiments and continue to work on them later
- share them with the colleagues