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
import os | |
import time | |
class Not_Geometric_Error(Exception): | |
pass | |
class Not_Arithmetic_Error(Exception): | |
pass |
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
""" | |
Se trata crear una lista de lo que compraste en las tiendas de sneackers y dividirlos en las secciones: | |
1.-Solicitar a traves de el teclado utilizando la funcion input las siguientes categorias para la lista: | |
Tenis: Jordan 1, Jordan 4, yeezys, etc | |
Hoodies: Supreme, Gap, Champion, etc | |
Gorras: New Era, Gap, etc | |
2.-Debes utilizar el metodo append para agregar elementos de forma manual a la lista, agregaras 1 seccion nueva la que decidas con almenos 3 elementos | |
3.-En comentarios extendidos describe que hace tu lista, sus caracteristicas, el tipo objetos que contiene (tipos de datos) | |
4.-Deberas mostrar el contenido de esta lista utilizando el FOR para imprimir elemento por elemento, al final deberas mostrar un ejemplo de uso en tu lista de los metodos extend, reverse, remove | |
5.-Debes agregarle un precio a cada producto almenos mediante el uso de variables |
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
import random | |
import os | |
import time | |
def guess_the_number(): | |
os.system('cls') | |
print('This program is designed to guess a number. Have fun!!!') | |
time.sleep(3) | |
low = 0 | |
high = 10 ** 6 |
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
from os import system | |
from time import sleep | |
print("Este programa funciona para realizar una cover letter, introduciendo unos datos. Agradezco el uso que puedas hacer de el") | |
sleep(5) | |
system("cls") | |
name = input("Introduce tu nombre:") | |
carreer = input("Introduce la carrera que estas estudiando:") | |
vacancy = input("Introduce el puesto que buscas:") | |
reasons = input("Introduce las razones por las que lo buscas, separadas con comas(no agregues un y):") | |
company = input("Introduce la compañia para la que te gustaria trabajar:") |
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
"""The rock paper scissors game consists of the following | |
2 Players | |
Rock > Scissors | |
Paper > Rock | |
Scissors > Paper | |
I will build a game that replicates this behavior | |
""" | |
from os import system | |
from time import sleep | |
import random |
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
import json | |
import json | |
import random | |
from os import system | |
from time import sleep | |
import string | |
# This part of code gets the data_set that we will be working with. | |
def clear_and_pause(): |
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
def conjunto_potencia(conjunto): | |
conjunto_potencia = ["∅",conjunto.copy()] | |
def funcion_recursiva(conjunto, profundidad=0): | |
subconjuntos = [] | |
for i in range(len(conjunto)): | |
subconjunto = conjunto.copy() | |
subconjunto.pop(i) | |
if subconjunto: | |
subconjuntos.append(subconjunto) |
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
def producto_cartesiano(conjunto1, conjunto2): | |
conjunto1 = list(conjunto1) | |
conjunto2 = list(conjunto2) | |
conjunto_producto_cartesiano = [] | |
for elemento1 in conjunto1: | |
for elemento2 in cojunto2: | |
conjunto_producto_cartesiano.append([elemento1, elemento2]) | |
return conjunto_producto_cartesiano |
This file has been truncated, but you can view the full file.
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
(function(){const k=document.createElement("link").relList;if(k&&k.supports&&k.supports("modulepreload"))return;for(const ae of document.querySelectorAll('link[rel="modulepreload"]'))j(ae);new MutationObserver(ae=>{for(const Q of ae)if(Q.type==="childList")for(const _ of Q.addedNodes)_.tagName==="LINK"&&_.rel==="modulepreload"&&j(_)}).observe(document,{childList:!0,subtree:!0});function D(ae){const Q={};return ae.integrity&&(Q.integrity=ae.integrity),ae.referrerPolicy&&(Q.referrerPolicy=ae.referrerPolicy),ae.crossOrigin==="use-credentials"?Q.credentials="include":ae.crossOrigin==="anonymous"?Q.credentials="omit":Q.credentials="same-origin",Q}function j(ae){if(ae.ep)return;ae.ep=!0;const Q=D(ae);fetch(ae.href,Q)}})();var i1=Array.isArray,I6=Array.from,T6=Object.isFrozen,Jm=Object.defineProperty,Kh=Object.getOwnPropertyDescriptor,Q6=Object.getOwnPropertyDescriptors,M6=Object.prototype,k6=Array.prototype,F6=Object.getPrototypeOf;const bd=2,Sg=4,Gf=8,wd=16,Ec=64,Wf=128,Mc=256,sc=512,Bd=1024,Xf=2048,Ld=4096,I2=819 |
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
#include <iostream> | |
#include <string> | |
#include <vector> | |
// Nombre del progamador: Francisco Ezequiel Baños Ramírez | |
// Fecha de creacion: 12 de abril de 2024 | |
// Descripcion: Este programa permite al usuario crear dos conjuntos de cadenas de texto y luego calcula y muestra el conjunto potencia de la unión de ambos conjuntos. El conjunto potencia de un conjunto es el conjunto que contiene todos los subconjuntos posibles del conjunto original. | |
// Funcionamiento del programa | |
// Datos de entrada | |
// Dos conjuntos de cadenas de texto. |
OlderNewer