How to Create a While Loop in Python


In this example, we will learn how to create a while loop in Python.

Source Code

a = 3
while a < 13:
    print(a)
    a += 4

Output:

3
7
11
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments
Advertisement