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