How do I write a while loop in Python?
A while loop in Python has the following syntax:
vbnet
while condition:
# code to execute while condition is True