Answers for "python make code loop"

2

python for loop

for i in range(5, 9):
  print(i)
Posted by: Guest on November-29-2020
1

how to use a for loop in python

a_list = [1,2,3,4,5]

#this loops through each element in the list and sets it equal to x
for x in a_list:
	print(x)
Posted by: Guest on September-19-2020
0

how do i make a for loop in python

for i in range(0, 10):
  #do stuff
  pass
Posted by: Guest on September-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language