I am trying to run a python code and this seems to cause error. Please help me
def randomPlace(b,lis):
pos = []
for i in lis:
if available(b,i):
pos.append(i)
if len.pos() != 0:
return random.choice(pos)
else:
return None
b is a list with 10 characters and lis is a list with 4 integers
Error is:
Traceback (most recent call last):
File "D:\TestsPython\TicTacToe.py", line 65, in randomPlace if len.pos() != 0: AttributeError: 'builtin_function_or_method' object has no attribute 'pos'
len(pos)? - Ashwini Chaudhary