Función de bucle python

Ejemplos de código

68
0

bucles python

#x starts at 1 and goes up to 80 @ intervals of 2
for x in range(1, 80, 2):
  print(x)
29
0

python para bucle

for x in (list):
  print(x)
6
0

python para bucle

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

python cómo bucle

for _ in range(1,10,2): #(initial,final but not included, gap) (the "_" underscore symbol mean there are no variables initialize in this loop)
	print("hi");
0
0

bucle for de python

#Python syntax for loop
add=0
for i in range(0,10):
  add=add+i
add=0  
list_1=[1,2,3,4,5,6,7]
for i in list_1:
  add=add+i
  

En otros idiomas

Esta página está en otros idiomas

Русский
..................................................................................................................
English
..................................................................................................................
Italiano
..................................................................................................................
Polski
..................................................................................................................
Română
..................................................................................................................
한국어
..................................................................................................................
हिन्दी
..................................................................................................................
Français
..................................................................................................................
Türk
..................................................................................................................
Česk
..................................................................................................................
Português
..................................................................................................................
ไทย
..................................................................................................................
中文
..................................................................................................................
Slovenský
..................................................................................................................
Балгарскі
..................................................................................................................
Íslensk
..................................................................................................................