diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ed8ebf5 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +__pycache__ \ No newline at end of file diff --git a/A6G2.py b/A6G2.py new file mode 100644 index 0000000..b471aad --- /dev/null +++ b/A6G2.py @@ -0,0 +1,10 @@ +from bienvenida import bienvenida +from ing2Enteros import ing2i +from ing2Strings import ing2s + +bienvenida() +nums = ing2i() +cadenas = ing2s() + +print(nums) +print(cadenas) \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..bf134c4 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ + + +# A6G2 - Cohorte 2022 +### Colaboradores + +- Ma. Inés García B.🦄 +- Sebastian Galvan 🐱‍👤 +- Fernando Geronimo +- Maira Gaytan +- Gimenez Veron Adrian +- Pedro Ghirardi +- Jose Pablo Gallotti +- David Gamarra +- Julian Grosso +- Eber Gonzalez +- Fabian Gomez +- Fernando Gigena Neyra \ No newline at end of file diff --git a/bienvenida.py b/bienvenida.py new file mode 100644 index 0000000..d4f239c --- /dev/null +++ b/bienvenida.py @@ -0,0 +1,7 @@ +def bienvenida(): + + """ + Muestra un cartel de bienvenida + """ + + print("Bienvenid@s!!") \ No newline at end of file diff --git a/funcion_p1_resta.py b/funcion_p1_resta.py new file mode 100644 index 0000000..4ea4961 --- /dev/null +++ b/funcion_p1_resta.py @@ -0,0 +1,23 @@ +from resta import resta +from producto import producto + +def funcion_p1_resta(param1, param2, param3): + """Función que resta los dos primeros parámetros "p1" y "p2" y los + multipica por el parámetro "p3" usando las funciones externas "resta" y "producto". + Args: + p1 (int | float) + p2 (int | float) + p3 (int | float) + Returns: + int | float: Resultado final de las operaciones con redondeo de 2 decimales. + """ + + op_resta = resta(param1, param2) + result = producto(op_resta, param3) + return result + + +# Test en consola de la función "p1" +# print("Test func_p1 01 (Resultado esperado: 74.64):", p1(12.4, 0.4, 6.22)) +# print("Test func_p1 02 (Resultado esperado: 80):", p1(30, 10, 4)) +# print("Test func_p1 03 (Resultado esperado: -32):", p1(2, 10, 4)) diff --git a/funcion_p1_suma.py b/funcion_p1_suma.py new file mode 100644 index 0000000..6f6710f --- /dev/null +++ b/funcion_p1_suma.py @@ -0,0 +1,11 @@ +#9- función p1, retorna la suma de los 2 primero por el 3er parámetros, usando las +#funciones anteriores +from suma import suma +from producto import producto + +def funcion_p1_suma (num1, num2, num3): + + suma = suma(num1,num2) + operacion = producto(suma, num3) + + return operacion \ No newline at end of file diff --git a/genrnd.py b/genrnd.py new file mode 100644 index 0000000..d4c09e2 --- /dev/null +++ b/genrnd.py @@ -0,0 +1,10 @@ +import random as r +def genrnd(): + """retorna una lista con 50 números aleatorios. [0-100] + """ + my_list= [] + + for i in range (50): + my_list.append( r.randint (0,100)) + + return my_list \ No newline at end of file diff --git a/github-repo_assets/ISPC_CDIA.jpg b/github-repo_assets/ISPC_CDIA.jpg new file mode 100644 index 0000000..d7a600c Binary files /dev/null and b/github-repo_assets/ISPC_CDIA.jpg differ diff --git a/ing2Enteros.py b/ing2Enteros.py new file mode 100644 index 0000000..8cc2586 --- /dev/null +++ b/ing2Enteros.py @@ -0,0 +1,7 @@ +def ing2i(): + """ + Permite ingresar 2 numeros + """ + num1 = int(input('Ingrese numero 1: ')) + num2 = int(input('Ingrese numero 2: ')) + return num1, num2 \ No newline at end of file diff --git a/ing2Strings.py b/ing2Strings.py new file mode 100644 index 0000000..0b26d90 --- /dev/null +++ b/ing2Strings.py @@ -0,0 +1,7 @@ +def ing2s(): + """ + Permite ingresar 2 cadenas + """ + cadena1 = input('Ingrese cadena 1: ') + cadena2 = input('Ingrese cadena 2: ') + return cadena1, cadena2 \ No newline at end of file diff --git a/modulo.py b/modulo.py new file mode 100644 index 0000000..e43b5b7 --- /dev/null +++ b/modulo.py @@ -0,0 +1,7 @@ + +def modulo(para1, para2): + """" + Función modulo + retorna el modulo de 2 parametros + """ + return para1 % para2 \ No newline at end of file diff --git a/producto.py b/producto.py new file mode 100644 index 0000000..18e8e9f --- /dev/null +++ b/producto.py @@ -0,0 +1,11 @@ +def producto(n1, n2): + """Devuelve el producto entre dos parametros + + Args: + n1 (int | float) + n2 (int | float) + + Returns: + (int | float) + """ + return n1 * n2 \ No newline at end of file diff --git a/radicacion.py b/radicacion.py new file mode 100644 index 0000000..84daaa0 --- /dev/null +++ b/radicacion.py @@ -0,0 +1,9 @@ +def radicacion (base, indice): + """retorna la raíz del primero respecto del segundos parámetros + + Args: + base + indice + """ + return pow(base, 1/indice ) + diff --git a/resta.py b/resta.py new file mode 100644 index 0000000..3b8ca97 --- /dev/null +++ b/resta.py @@ -0,0 +1,8 @@ +def resta(num_1, num_2): + """" + === Función Resta === + Parametros: "num_1" y "num_2" + Descripcion: Esta funcion recibe dos parametros del tipo numéricos y retorna la resta entre dichos parametros. + + """ + return num_1 - num_2 \ No newline at end of file diff --git a/suma.py b/suma.py new file mode 100644 index 0000000..54eb801 --- /dev/null +++ b/suma.py @@ -0,0 +1,14 @@ +#para1=hace referencia al parametro1 +#para2=hace referencia al parametro2 + + + +def suma(para1, para2): + """Devuelve el la suma entre dos parametros + Args: + para1 (int | float) + para2 (int | float) + Returns: + (int | float) + """ + return para1+para2 \ No newline at end of file