Answers for "for loop to while loop in python"

13

while loop python

while (condition):
  doThis();
Posted by: Guest on December-10-2019
5

while loop in python

#there are 2 ways to make a while loop in python

#first way -

while True:
  (#what ever you want in the loop)
    
#second way - 
    
while 1:  
    (#what ever you want in the loop)
Posted by: Guest on July-22-2020
0

while loop python

# while loop (python)
i = 0 

while i < 10:
  	i +=1 #or i = i + 1 
    print(i)
Posted by: Guest on September-17-2020
0

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"""
Posted by: Guest on August-27-2021

Code answers related to "for loop to while loop in python"

Python Answers by Framework

Browse Popular Code Answers by Language