a = array.array('i',(0 for i in range(0,10)))
Here is what the above code is Doing:
1. We’re creating an array of integers.
2. We’re creating an array of 10 integers.
3. We’re creating an array of 10 integers, each of which is initialized to 0.
a = array.array('i',(0 for i in range(0,10)))
Here is what the above code is Doing:
1. We’re creating an array of integers.
2. We’re creating an array of 10 integers.
3. We’re creating an array of 10 integers, each of which is initialized to 0.