如何使用列表解决此python错误? [关闭]

不确定此错误是什么。有谁可以帮我离开这里吗?

Traceback (most recent call last):
  File "C:/Users/18cgi/Desktop/pleasework.py", line 48, in <module>
   print('Sorted list ', sorted(list,key = lambda x : score(x)))
 File "C:/Users/18cgi/Desktop/pleasework.py", line 48, in <lambda>
    print('Sorted list ', sorted(list,key = lambda x : score(x)))
  File "C:/Users/18cgi/Desktop/pleasework.py", line 28, in score
    if isPrime(n):
  File "C:/Users/18cgi/Desktop/pleasework.py", line 5, in isPrime
    if n%2==0:
TypeError: unsupported operand type(s) for %: 'list' and 'int'