for i in array in range python 1

for i in array in range python

for i in array[0:3]: 
    print(i)

Here is what the above code is Doing:
1. We’re creating an array of numbers from 0 to 9.
2. We’re printing the first three numbers in the array.

The output of the above code is:
0
1
2

Similar Posts