Today on Python Lab, we have a quick and easy way to print out all the items of an iterable (list, set, dict etc) one below the other. I find this a great way to clearly read items in a list when debugging.

So: How to pretty print a list?

Pretty Print a list

Lets see how this piece of code works 👇🏾

Tagged in: