You've already forked Curso-lenguaje-python
Update Python Ofensivo
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python3
|
||||
"""
|
||||
Modulos
|
||||
"""
|
||||
|
||||
def suma(x, y):
|
||||
return x + y
|
||||
|
||||
def resta(x, y):
|
||||
return x - y
|
||||
|
||||
def multiplicacion(x, y):
|
||||
return x * y
|
||||
|
||||
def division(x, y):
|
||||
|
||||
if y == 0:
|
||||
raise ValueError('[!] No se puede dividir por cero')
|
||||
else:
|
||||
return x / y
|
||||
|
||||
Reference in New Issue
Block a user