Update Python Ofensivo

This commit is contained in:
2023-12-29 07:05:48 +01:00
parent 159d9490a4
commit d49859c627
7 changed files with 90 additions and 0 deletions

View File

@@ -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