Ad
Code
Diff
  • from math import prod
    
    def multiply(*ints):
        return prod(ints)
    
    result = multiply(5, 10)
    print(result)
    
    • from math import prod
    • def multiply(a, b):
    • ints = (a, b)
    • def multiply(*ints):
    • return prod(ints)
    • result = multiply(5, 10)
    • print(result)