Answers for "what are while loops in python for beginners"

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 "what are while loops in python for beginners"

Python Answers by Framework

Browse Popular Code Answers by Language