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() |
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
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
# 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
# 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
# Entradas | |
dividendo = int(input("Ingrese dividendo: ")) | |
divisor = int(input("Ingrese divisor: ")) | |
# Procesamiento | |
# No poner 0 entre comillas ya que se toma como string, | |
if divisor == 0: | |
print("Error: división por cero") |
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 | |
player = input("Ingrese el nombre del participante: ") | |
# Procesamiento | |
if player.lower() == "papi micky": | |
print("El publico grita: PAAAAA") | |
elif player.lower() == "rene puente": | |
print("El publico grita: GATITO DEBAJO DEL AGUA") |
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 | |
nombre = input("Ingrese su nombre: ") | |
nombre_2 = nombre.upper() | |
nombre_3 = nombre_2.replace(" ", "") | |
# Salidas | |
print(nombre_2, "tiene", len(nombre_3), "letras") |
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 | |
caracter = str(input("pone lo q querai: ")) | |
vocal = "aeiou" | |
lol = 0 | |
locura = caracter.isalpha() | |
# Procesamiento | |
if locura == True: | |
for i in range(0,5): | |
if caracter == vocal[i]: | |
lol = 1 |
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 | |
import time | |
# Entradas | |
xd = int(input("Inserta tu número: ")) | |
# Procesamiento | |
if xd % 10 == 0: |
NewerOlder