number is equivalent to i in your C loop, i.e., it is a variable that holds the value of each loop iteration. A simple translation of your ... ... <看更多>
we can equivalently iterate of the list indices and index the list inside the loop: for i in range(len(somelist)): element = somelist[i] ... Since ... ... <看更多>