Answers for "python for lopp"

2

python for loop

a = 10 
for i in range(1, 10) # the code will move from the range from 1 to 10 but not including 10
	print(i)
Posted by: Guest on January-17-2021
6

python for loop

words=['zero','one','two']
for operator, word in enumerate(words):
	print(word, operator)
Posted by: Guest on March-19-2020

Python Answers by Framework

Browse Popular Code Answers by Language