Learning Python

jueves, 13 de febrero de 2025

while and if

 i=0

m=True

while m:

    print(i)

    i+=1

    if i==10:

        m=False


0

1

2

3

4

5

6

7

8

9


Publicado por Ambiorix Rodriguez en 15:50
Enviar por correo electrónicoEscribe un blogCompartir en XCompartir con FacebookCompartir en Pinterest

No hay comentarios:

Publicar un comentario

Entrada más reciente Entrada antigua Inicio
Suscribirse a: Enviar comentarios (Atom)

Archivo del blog

  • ▼  2025 (9)
    • ►  mayo (1)
    • ►  abril (1)
    • ►  marzo (1)
    • ▼  febrero (2)
      • while and if
      • find missing number from a list range
    • ►  enero (4)
  • ►  2024 (67)
    • ►  diciembre (5)
    • ►  noviembre (5)
    • ►  octubre (12)
    • ►  septiembre (14)
    • ►  agosto (14)
    • ►  julio (11)
    • ►  junio (6)
  • ►  2023 (3)
    • ►  octubre (1)
    • ►  marzo (1)
    • ►  febrero (1)
  • ►  2022 (1)
    • ►  julio (1)
  • ►  2021 (2)
    • ►  junio (1)
    • ►  marzo (1)
  • ►  2020 (2)
    • ►  julio (1)
    • ►  febrero (1)
  • ►  2019 (7)
    • ►  agosto (1)
    • ►  julio (3)
    • ►  mayo (1)
    • ►  marzo (2)
  • ►  2018 (57)
    • ►  diciembre (3)
    • ►  noviembre (1)
    • ►  octubre (1)
    • ►  junio (2)
    • ►  abril (1)
    • ►  marzo (5)
    • ►  febrero (3)
    • ►  enero (41)
Tema Sencillo. Con la tecnología de Blogger.