how to multiply a number by how much of the input python code example

Example 1: how to multiply inputs in python

x = input("give me the number you want to multiply")
y = input("give me the second number you want to multiply")


y = int(y)
x = int(x)


print (y * x)

Example 2: multiplication of two or more numbers in python

# multiplication of two or more numbers
def multiple(*a):
    result = 1
    for i in a:
        result = result * i
    return result


# insert any number of arguments for multiplication, example:
res = multiple(12, 2, 5)
print(res)
# In this example, code output is = 120