Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to loop in python

	#the number is how many times you want to loop
for i in range (number):
	#here where you put your looping code
 
	#for example
for i in range (4):
  	print(Hello World)
    print(Hi World)
    
      #output
  Hello World
  Hi World
  Hello World
  Hi World
  Hello World
  Hi World
  Hello World
  Hi World

	#check out more:https://www.askpython.com
 
PREVIOUS NEXT
Tagged: #loop #python
ADD COMMENT
Topic
Name
7+1 =