Skip to content

How to reapete the in Python?

for i in range(4):  # 4 = number of times you want to run the code
  print("Hello World")
See also  Python code snippet - How to bold in colorama?
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

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