So I have this function that creates a dictionary called a() and takes parameters params. I want to print that dictionary, so I used pprint:
dict=a(params)
pprint(dict)
pprint gives me this error:
TypeError: 'module' object is not callable
but print works fine!
How did you import
pprint? If you didn’t specify what to import frompprintyou need to use the module name when calling.Or you can import a specific method.