From bd86393c56115408975aa19cfe2eb9594b8a541d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Miss=C3=A1n?= Date: Tue, 2 Dec 2025 03:10:43 -0300 Subject: [PATCH 1/4] Reto #40 - Python --- .../python/Rodo-Missan.py" | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 "Retos/Reto #40 - TABLA DE MULTIPLICAR [F\303\241cil]/python/Rodo-Missan.py" diff --git "a/Retos/Reto #40 - TABLA DE MULTIPLICAR [F\303\241cil]/python/Rodo-Missan.py" "b/Retos/Reto #40 - TABLA DE MULTIPLICAR [F\303\241cil]/python/Rodo-Missan.py" new file mode 100644 index 0000000000..d6d859c0ce --- /dev/null +++ "b/Retos/Reto #40 - TABLA DE MULTIPLICAR [F\303\241cil]/python/Rodo-Missan.py" @@ -0,0 +1,12 @@ +def mostrarTabla(numero): + print(f"\nTABLA DE MULTIPLICAR DEL {numero}") + for i in range(1,11): + print(f"{numero} x {i} = {numero*i}") + +while True: + try: + nro = int(input("Ingrese un número: ")) + mostrarTabla(nro) + break + except ValueError: + print("ERROR: Debe ingresar un número entero") \ No newline at end of file From 6580cb97487d79bcc3642b9a2523d5defba61673 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Miss=C3=A1n?= Date: Thu, 4 Dec 2025 09:21:59 -0300 Subject: [PATCH 2/4] Solucion al reto #0 en Python --- .../python/Rodo-Missan.py" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/python/Rodo-Missan.py" diff --git "a/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/python/Rodo-Missan.py" "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/python/Rodo-Missan.py" new file mode 100644 index 0000000000..22d551ffd9 --- /dev/null +++ "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/python/Rodo-Missan.py" @@ -0,0 +1,17 @@ +""" +Escribe un programa que muestre por consola (con un print) los +números de 1 a 100 (ambos incluidos y con un salto de línea entre +cada impresión), sustituyendo los siguientes: +Múltiplos de 3 por la palabra "fizz". +Múltiplos de 5 por la palabra "buzz". +Múltiplos de 3 y de 5 a la vez por la palabra "fizzbuzz". +""" +for i in range(1,101): + if i%3 == 0 and i%5 == 0: + print("fizzbuzz") + elif i%3 == 0: + print("fizz") + elif i%5 == 0: + print("buzz") + else: + print(i) \ No newline at end of file From 398f74189e5490e4cf97490e2682736e45ff413e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Miss=C3=A1n?= Date: Thu, 4 Dec 2025 09:36:09 -0300 Subject: [PATCH 3/4] =?UTF-8?q?Eliminar=20soluci=C3=B3n=20del=20reto=20#40?= =?UTF-8?q?;=20dejar=20solo=20reto=20#0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../python/Rodo-Missan.py" | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 "Retos/Reto #40 - TABLA DE MULTIPLICAR [F\303\241cil]/python/Rodo-Missan.py" diff --git "a/Retos/Reto #40 - TABLA DE MULTIPLICAR [F\303\241cil]/python/Rodo-Missan.py" "b/Retos/Reto #40 - TABLA DE MULTIPLICAR [F\303\241cil]/python/Rodo-Missan.py" deleted file mode 100644 index d6d859c0ce..0000000000 --- "a/Retos/Reto #40 - TABLA DE MULTIPLICAR [F\303\241cil]/python/Rodo-Missan.py" +++ /dev/null @@ -1,12 +0,0 @@ -def mostrarTabla(numero): - print(f"\nTABLA DE MULTIPLICAR DEL {numero}") - for i in range(1,11): - print(f"{numero} x {i} = {numero*i}") - -while True: - try: - nro = int(input("Ingrese un número: ")) - mostrarTabla(nro) - break - except ValueError: - print("ERROR: Debe ingresar un número entero") \ No newline at end of file From c99f622a24941c2d91f6ea289dd4714840425b49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Miss=C3=A1n?= Date: Thu, 4 Dec 2025 09:38:30 -0300 Subject: [PATCH 4/4] =?UTF-8?q?Nueva=20soluci=C3=B3n=20del=20reto=20#0=20e?= =?UTF-8?q?n=20Python?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../python/Rodo-Missan.py" | 8 -------- 1 file changed, 8 deletions(-) diff --git "a/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/python/Rodo-Missan.py" "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/python/Rodo-Missan.py" index 22d551ffd9..d049d9a9b2 100644 --- "a/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/python/Rodo-Missan.py" +++ "b/Retos/Reto #0 - EL FAMOSO FIZZ BUZZ [F\303\241cil]/python/Rodo-Missan.py" @@ -1,11 +1,3 @@ -""" -Escribe un programa que muestre por consola (con un print) los -números de 1 a 100 (ambos incluidos y con un salto de línea entre -cada impresión), sustituyendo los siguientes: -Múltiplos de 3 por la palabra "fizz". -Múltiplos de 5 por la palabra "buzz". -Múltiplos de 3 y de 5 a la vez por la palabra "fizzbuzz". -""" for i in range(1,101): if i%3 == 0 and i%5 == 0: print("fizzbuzz")