MCPcopy
hub / github.com/midudev/curso-python / sumar_numeros

Function sumar_numeros

03_loops/04_functions.py:67–71  ·  view source on GitHub ↗
(*args)

Source from the content-addressed store, hash-verified

65
66# Argumentos de longitud de variable (*args):
67def sumar_numeros(*args):
68 suma = 0
69 for numero in args:
70 suma += numero
71 return suma
72
73print(sumar_numeros(1, 2, 3, 4, 5))
74print(sumar_numeros(1, 2))

Callers 1

04_functions.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected