Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sumar(operandos):
- operando1, *operandos_restantes = operandos
- return operando1 + sumar(operandos_restantes) if operandos_restantes else operando1
- operandos = [2, 3, 5, 7, 11, 13]
- print(sumar(operandos))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement