Question: Assume that a function named add has been defined. The add function expects two integer arguments and returns their sum. Also assume that two
Assume that a function named add has been defined. The add function expects two integer arguments and returns their sum. Also assume that two variables, euro_sales and asia_sales, have already been assigned values. Write a statement that calls the add function to compute the sum of euro_sales and asia_sales and that assigns this value to a variable named eurasia_sales. 1- def add (x, y): 2 3 4 5 6 return x + y euro_sales = 23 asia_sales = 10 7 eurasia_sales = add (euro_sales, asia_sales) 8 9 print (eurasia_sales) 10 5
Step by Step Solution
There are 3 Steps involved in it
The statement that calls the add function to compute the sum of eur... View full answer
Get step-by-step solutions from verified subject matter experts
