Answers for "python for"

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
1

for loop python

for x in range(6)
  print(x)
  #Result: 0 1 2 3 4 5
Posted by: Guest on November-14-2021
37

for loop python

Python Loops

for x in range(1, 80, 2):
  print(x)

words=['zero','one','two']
for operator, word in enumerate(words):
	print(word, operator)

for x in range(1, 80, 2):
  print(x)
Posted by: Guest on April-07-2020
1

for loop in python

# python
n=[10,1,20,1,5,56]     
for i in n:         
    print(i)      
                       
output:
10
1
20
1
5
56
Posted by: Guest on November-19-2021
1

python for loop

for i in range(27)
	print(i)
Posted by: Guest on November-11-2021
2

python for loop

for x in range(10):
	print(x)
// output: 1,2,3,...,10
    
for x in range(10, 20, 2):
	print(x)
// output: 10, 12, 14, 16, 18, 20

list = [2, 3, "el"]
for x in list:
	print(x)
// output: 2, 3, "el"
Posted by: Guest on September-28-2021

Python Answers by Framework

Browse Popular Code Answers by Language