Answers for "how to write a while loop in python3"

1

while loop python

# While loop counting to 10 in 2's

i = 2

while i <= 10:  # While i is less than or equal 10, it will add 2
  print(i)
  i = i + 2
Posted by: Guest on March-16-2021

Code answers related to "how to write a while loop in python3"

Python Answers by Framework

Browse Popular Code Answers by Language