Answers for "for in step python"

4

python for enumerate loop

>>> values = ["a","b","c"]
>>> for count, value in enumerate(values):
...     print(count, value)
...
0 a
1 b
2 c
Posted by: Guest on December-23-2020
6

for loop in python

for x in range(6):

	 
	print(x)
Posted by: Guest on August-07-2020

Python Answers by Framework

Browse Popular Code Answers by Language