Skip to content

How to write a while statement in Python?

myvariable = 10
while myvariable > 0:
  myvariable -= 1
See also  Python code snippet - How to save and load data npy?

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.