How to print float number in python using for loop?

i=0

j=0

for i in range (0,3,0.1):

for j in range (0,4,0.1):

print(i,j)

TypeError: 'float' object cannot be interpreted as an integer

More Manish Kumar's questions See All
Similar questions and discussions