Python has two built-in functions that can help with debugging. Most known one is print()
and the other is pprint()
(pretty print).
There’s an external library icecream
that you can also use and it will have an even better output.
I presented this library at Ljubljana’s Python Meetup in September 2021.