User Profile
Collapse
-
Sorry, folks. I finally found the issue. It was starring me straight in the face. I found that I had created a previous python program and used the same name as a python class/module, which I should not have done. -
TypeError: 'module' object is not callable
All, I am trying to learn python. The below code is from a book example. I have researched the error:
Code:Traceback (most recent call last): File "bin/flips.py", line 4, in <module> import random File "/home/david/bin/random.py", line 10, in <module> if random.random() < 0.5: TypeError: 'module' object is not callable
What I have found is that the...
No activity results to display
Show More
Leave a comment: