Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

for loop to while loop in python

for i in range(1"""start""",10"""end""",2"""steps"""):
  print(i)
  
i = 1 """start"""
while i<10"""end""":
  print(i)
  i+=2"""steps"""
Source by www.py4e.com #
 
PREVIOUS NEXT
Tagged: #loop #loop #python
ADD COMMENT
Topic
Name
2+5 =