How do I get python’s pprint to return a string instead of printing? by IT Nursery In other words, what’s the sprintf equivalent to pprint? 5 Answers 5