Fonction de boucle python

Exemples de code

68
0

boucles 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 pour boucle

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

python pour boucle

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

python comment faire une boucle

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

pour la boucle en 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
  

Dans d'autres langues

Cette page est dans d'autres langues

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