while loop python
while (condition):
doThis();
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)
while loop python
# while loop (python)
i = 0
while i < 10:
i +=1 #or i = i + 1
print(i)
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"""
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us