I'm moving some code from php to python and could not find an easy alternative to var_export for python. PHP documentation is here: https://www.php.net/manual/en/function.var-export.php
For numbers (integer, string) is just the "{0}".format() but for the other type of variables?