Answers for "decrement in for loop in python"

1

for decrement python

for x in range(10,0,-1):
    print(x)
Posted by: Guest on February-22-2021
1

python for loop with increment

lis = [1, 2, 3, 4, 5]
for i in range(len(lis)):
  print(lis[i])
  i+=1
Posted by: Guest on November-02-2020

Code answers related to "decrement in for loop in python"

Python Answers by Framework

Browse Popular Code Answers by Language