TypeError: 'module' object is not callable in Python
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!