Answers for "how to set loop step to a float number in python"

0

for loop with float python

import numpy as np 

for  i in np.arange(0.5, 1.5, 0.2):
   print(i, end =" ")
Posted by: Guest on June-04-2021

Code answers related to "how to set loop step to a float number in python"

Python Answers by Framework

Browse Popular Code Answers by Language