LU05.L01 - Verwendung von *args in Funktionen

def multiply_all(*args):
    Multiplies all the given numbers together and returns the product.
        *args (float or int): Variable number of arguments to be multiplied.
        float or int: The product of all the given numbers.
    product = 1
    for num in args:
        product *= num
    return product
  • modul/m323/learningunits/lu05/loesungen/args.txt
  • Zuletzt geändert: 2024/03/28 14:07
  • von