This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Entradas | |
numero_1 = float(input("Ingrese el primer numero: ")) | |
numero_2 = float(input("Ingrese el segundo numero: ")) | |
op = input("Que operacion desea realizar: ") | |
# Procesamiento | |
if op.lower() == "suma": | |
print("El resultado es:", numero_1+numero_2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Constantes | |
lista = [] | |
i = 1 | |
suma = 0 | |
# Entrada | |
n1 = int(input("Ingrese un número: ")) | |
# Procesamiento |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
i = 0 | |
e = 0 | |
lista = [] | |
lista2 = [] | |
ganador1 = 0 | |
ganador2 = 0 | |
# Entradas | |
ronda = int(input("Ingrese la cantidad de rondas: ")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Entradas | |
n = int(input("Ingrese un número: ")) | |
# Procesamiento | |
if n <= 1: | |
print("No es primo") | |
else: | |
divisor = 2 | |
es_primo = True |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Constante | |
i = 0 | |
printear = "" | |
# Entradas | |
name = input("Ingrese su nombre completo: ") | |
# Procesamiento | |
nombre = name.split() |
OlderNewer