L = [] n=1 while n<=99: L.append(n) n +=2
i=0 half=[] while i<len(L)/2: half.append(L[i]) i +=1 print(half) print(len(half))
Sign in to make a reply
林林1292
L = [] n=1 while n<=99: L.append(n) n +=2
print(L)
i=0 half=[] while i<len(L)/2: half.append(L[i]) i +=1 print(half) print(len(half))