A different way of printing, its the comma that makes it easy.

When I start debugging I usually fill up my entire code with prints to get some info out of it.
Now I used to write something like this


However I started to get annoyed by it as I would forget converting ints to str etc.

So I started writing it like this:

This first of all saves a lot of time typing, because of the comma, but also python will not try to combine the data and will just print whatever is provided without adding a new line in between.

Leave a Reply

Your email address will not be published. Required fields are marked *