Check io (“aaaaaaaaaaaaaaaaaaaaaaaaaa”) my return should be False? Why does the website say true

  python

图片描述

num=[]
 low=[]
 cap=[]
 def checkio(data):
 for i in data:
 a=i.isdigit()
 if a == True:
 num.append(i)
 for i in data:
 a = i.islower()
 if a == True:
 low.append(i)
 for i in data:
 a = i.isupper()
 if a == True:
 cap.append(i)
 if num and low and cap !  = []:
 if len(data) >= 10:
 return True
 else:
 return False
 else:
 return False

This is because the CheckiO test environment is different from the local environment. The global variable is initialized by testing several times before. The second test uses the global variable changed by the first test.
The solution is:

def checkio(data):

num=[]
 low=[]
 cap=[]

Ps: This ishttps://checkio.org/One of the test questions