Home » Python18 December 2014

Python: Print variable in human readable form like print_r in PHP

print_r prints a PHP variable into human readable form.

The same can be achieved in Python using pprint module.

Here is an example python code:

Hope it helps. Thanks.


Get New Post by Email

Find me on

FacebookTwitterGoogle+LinkedInRSS Feed

Comments are closed.