What is a Python equivalent of PHP’s var_dump()? [duplicate] September 15, 2022 by Tarik I think the best equivalent to PHP’s var_dump($foo, $bar) is combine print with vars: print vars(foo),vars(bar)