Dec-26-2023, 09:34 PM
(Dec-26-2023, 09:27 PM)Gribouillis Wrote:(Dec-26-2023, 09:24 PM)cspower Wrote: Error:Traceback (most recent call last): File "/home/cspower/python_projects/D_E_R.py", line 37, in <module>It means that you tried to use the pprint module instead of the pprint function. You can do
main()
File "/home/cspower/python_projects/D_E_R.py", line 29, in main
pprint(m_g)
TypeError: 'module' object is not callable
pprint.pprint(m_g)Or alternately you could replace
import pprintby
from pprint import pprint
It works now thank you