Answers for "python script for loop"

74

python loops

#x starts at 1 and goes up to 80 @ intervals of 2
for x in range(1, 80, 2):
  print(x)
Posted by: Guest on January-19-2020
2

how to create a for loop in python

my_list = [1,2,3]
for number in my_list:
	print(number)
#outputs
#1
#2
#3
Posted by: Guest on August-31-2021

Python Answers by Framework

Browse Popular Code Answers by Language