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 from pprint you need to use the module name when calling.
import pprint
pprint.pprint(...)
Or you can import a specific method.
from pprint import pprint
pprint(...)
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With