Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- # -*- coding: utf-8 -*-
- # modulo con funciones propias
- def sumar(a,b):
- return a+b
- def restar(a,b):
- return a - b
- def multiplicar(a,b):
- return a*b
- def dividir(a,b):
- if not b:
- return "No se puede dividir por cero"
- else:
- return a/b
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement