+1 vote
in Python by

How do I write a while loop in Python?

1 Answer

0 votes
by

A while loop in Python has the following syntax:

vbnet

while condition:

    # code to execute while condition is True

...