วันพฤหัสบดีที่ 24 กันยายน พ.ศ. 2558

Lab 5 : elements (value) of array and its index

def setup():
  n=[2,5,9,4,6,8,7,10,1,1,9,1]
  i=0
  while(i<len(n)):
     print("index ",i," = ",n[i])
     i=i+1     
              
setup()

ไม่มีความคิดเห็น:

แสดงความคิดเห็น