You've already forked Curso-lenguaje-python
Restructure content and add notes from HolaMundo
Signed-off-by: Manuel Vergara <manuel@vergaracarmona.es>
This commit is contained in:
10
python-total/dia_08/02_pruebas_paquete/ejercicio.py
Normal file
10
python-total/dia_08/02_pruebas_paquete/ejercicio.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from paquete_ma import suma_y_resta
|
||||
from paquete_ma.subpaquete_ma import saludo
|
||||
|
||||
# Importado del paquete
|
||||
suma_y_resta.suma(1, 5)
|
||||
|
||||
suma_y_resta.resta(15, 3)
|
||||
|
||||
# Importado del subpaquete
|
||||
saludo.hola()
|
||||
@@ -0,0 +1,2 @@
|
||||
def hola():
|
||||
print('hey!!')
|
||||
@@ -0,0 +1,6 @@
|
||||
def suma(num1, num2):
|
||||
print(num1 + num2)
|
||||
|
||||
|
||||
def resta(num1, num2):
|
||||
print(num1 - num2)
|
||||
Reference in New Issue
Block a user