Skip to content

Commit 3bb371a

Browse files
committed
video clase 9
1 parent 32576c4 commit 3bb371a

3 files changed

Lines changed: 3 additions & 17 deletions

File tree

06 - Funciones/Prep_Course_Homework_06-Resuelto.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"cell_type": "markdown",
1212
"metadata": {},
1313
"source": [
14-
"1) Crear una función que reciba un número como parámetro y devuelva si True si es primo y False si no lo es"
14+
"1) Crear una función que reciba un número como parámetro y devuelva True si es primo y False si no lo es"
1515
]
1616
},
1717
{

08 - Error Handling/Prep_Course_Homework_08-Resuelto.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"outputs": [],
2222
"source": [
2323
"import sys\n",
24-
"sys.path.append(r'/C:/Users/lopez/Documents/Henry/Repos/Python-Prep/08 - Error Handling/herramientas.py')"
24+
"sys.path.append(r'/C:/Users/lopez/Documents/Henry/Repos/Python-Prep/07 - Classes & OOP/herramientas.py')"
2525
]
2626
},
2727
{

08 - Error Handling/herramientas.py

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -98,18 +98,4 @@ def __factorial(self, numero):
9898
return 'El numero debe ser pisitivo'
9999
if (numero > 1):
100100
numero = numero * self.__factorial(numero - 1)
101-
return numero
102-
103-
import sys
104-
105-
#var1 = input('Ingresar un numero')
106-
#var1 = int(var1)
107-
#print('Tipo de dato del numero ingresado',type(var1))
108-
109-
lista_elementos = []
110-
for i, e in enumerate(sys.argv):
111-
if (i > 0):
112-
lista_elementos.append(e)
113-
114-
h = Herramientas(lista_elementos)
115-
print(h.lista)
101+
return numero

0 commit comments

Comments
 (0)