“pitón de bucle” Código de respuesta

Cómo hacer un bucle en Python

while True:
	#yourcode here
ultra

Python para bucle

# Python for loop

for i in range(1, 101):
  # i is automatically equals to 0 if has no mention before
  # range(1, 101) is making the loop 100 times (range(1, 151) will make it to loop 150 times)
  print(i) # prints the number of i (equals to the loop number)
  
for x in [1, 2, 3, 4, 5]:
  # it will loop the length of the list (in that case 5 times)
  print(x) # prints the item in the index of the list that the loop is currently on
Unknown Species

Python para bucle

for i in range(1.10):
	print(i)
    
#output: 1,2,3,4,5,6,7,8,9,10
AMXX

Python para bucle

for x in range(6): #The Loop
  print(x) #Output 0,1,2,3,4,5
Vasilije Dimitrijevic

Cómo hacer un bucle en Python

x = 0
while True: #execute forever
	x = x + 1
	print(x)
Taraxtix

pitón de bucle

for x in range(6):
  print(x)
Nimorum

Respuestas similares a “pitón de bucle”

Preguntas similares a “pitón de bucle”

Más respuestas relacionadas con “pitón de bucle” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código