Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python for loop float increment

import numpy
k=1
for i in numpy.arange(0,3,0.2):
    for j in numpy.arange(k,k+3,1):
         print("I= %i J=%i"%(i,j))
         k=k+0.2 
#ganesh
 
PREVIOUS NEXT
Tagged: #python #loop #float #increment
ADD COMMENT
Topic
Name
9+7 =