“Mientras que el bucle python” Código de respuesta

Python lo hace mientras

# Python does not have a do-while loop. You can however simulate
# it by using a while loop over True and breaking when a certain
# condition is met.
# Example:
i = 1
while True:
    print(i)
    i = i + 1
    if(i > 3):
        break
SkelliBoi

Cómo escribir una declaración de tiempo en Python

myvariable = 10
while myvariable > 0:
  print(myvariable)
  myvariable -= 1
Thoughtful Trout

hacer mientras está en Python

There is no direct do while loop in python.
Lala Talishinskaya

Mientras que el bucle python

# While loop counting to 10 in 2's

i = 2

while i <= 10:  # While i is less than or equal 10, it will add 2
  print(i)
  i = i + 2
Helpless Hamster

Mientras que el bucle python

i = 1
while i<10:
 print("hello world")
 i+=1
#note the i++ syntax is not valid in python
Javasper

Mientras que el bucle python

print 0,4
Encouraging Eagle

Respuestas similares a “Mientras que el bucle python”

Preguntas similares a “Mientras que el bucle python”

Más respuestas relacionadas con “Mientras que el bucle python” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código