0
Q:

for i in range python

for i in range(x) #[0;x[
2
#coding: utf-8

for item in range(10):
    print(item)
1
for i in range(x) :
  #code
1
times_repeated = 10

for i in range(1, times_repeated + 1): #1 is the starting point and times_repeated is how much times the loop with run.
  print(i) #Prints 1 2 3 4 ... 10
0
for elt in Liste:
  print(elt)
0
for i in range(start, end):
  expression
0
x = 9

for i in range(x):
  print(i) # prints i x times
0
for value in range (start, step, stop):
  pass
#note that the stop will not include
0
for value in range (start, step, stop):
  pass
# note that the stop will not include
0

New to Communities?

Join the community