0
pyton array Q!
Why i can't Fill this array on this way. #------------------------------------------------ X=0 Array=[] while X<10: Array[X] = X X+=1 print (Array) #---------------------------------------------- & How i can Fill this array on this way.
1 Odpowiedź
+ 8
why using this , just use :
x = 0
arr = []
while x<10:
arr.append(x)
x+=1
print(arr)