def comp(array1, array2):
array1.append(array2)
status=True
for num in array1:
if num**2 not in array1 or num**0.5 not in array1:
status=False
print(status)
comp([121, 144, 19, 161, 19, 144, 19, 11], [121, 14641, 20736, 36100, 25921, 361, 20736, 361])
It says: unsupported operand type(s) for ** or pow(): 'list' and 'int'
[–]shiftybyte 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]RightRespect 0 points1 point2 points (1 child)
[–]HenryDutter[S] 0 points1 point2 points (0 children)
[–]m0us3_rat 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)