Answers for "how for loop work in python implement"

0

loop in python

# A Sample Python program to show loop (unlike many 
# other languages, it doesn't use ++) 
# this is for increment operator here start = 1,  
# stop = 5 and step = 1(by default) 
print("INCREMENTED FOR LOOP") 
for i in range(0, 5): 
   print(i) 
  
# this is for increment operator here start = 5,  
# stop = -1 and step = -1  
print("n DECREMENTED FOR LOOP") 
for i in range(4, -1, -1): 
   print(i)
Posted by: Guest on September-10-2020
0

puthon for loop

num = 0

for in range(6):
	num += 1
print(num)
Posted by: Guest on October-25-2021

Code answers related to "how for loop work in python implement"

Python Answers by Framework

Browse Popular Code Answers by Language