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