Convert ConfigParser.items(”) to dictionary January 30, 2023 by Tarik Have you tried print connection_string % dict(config.items('db')) ?