TypeError: 'module' object is not callable in Python
Dung Do Tien
Jan 27 2021
291
I'm running my code in Python Ver3.9(Window10) and get the error status: TypeError: 'module' object is not callable, here my code:
#!/usr/bin/python
import random
try:
list_phone = ['+84','+10','+12']
phone = random(list_phone)
print(phone)
except Exception as e:
print(e)
In my code, I have a lot of modules to call, I want to choose random phone nums in the list, I need a solution to solve it thoroughly on my computer and others too. Help me, many tks guys!
No answer found.
* Type maximum 2000 characters.
* All comments have to wait approved before display.
* Please polite comment and respect questions and answers of others.