Need to write a code that satisfies this requirement: "Your program will contain two functions. The first should be a function that asks the user for two numbers and passes those numbers to main() which passes them to a second function. The second function should multiply those numbers together. Make sure to include a caller after and a docstring in all of your functions." Here is what I have so far, getting an error saying my x-value is not defined.
def main():
def multiplicationfunc(x,y):
'''this function multiplies the user input'''
z = x * y
return z
def user_input():
'''recieve two integers that will be used to multiply'''
x = eval(input("enter the first integer:"))
y = eval(input("enter the second integer:"))
return x,y
multiplicationfunc(x,y)
user_input()
main()
How do I fix it within the question?