In response to students that they had difficulty completing…
In response to students that they had difficulty completing Exam 1 within the allotted time, I have made a modification to the coding questions. Specifically, I have converted the coding questions into fill-in-the-blank format, with instructions provided for what should be entered into each blank. It’s important to follow the logic that has been presented, and to use the variables that have been defined. Once you have filled in the blanks as instructed, your code should run properly. Please exercise caution and good luck! You found an internship in a financial firm. Your manager asks you to write a function to return the minimum of two weekly closing prices. You need to write a function named mininum that accepts two floats as arguments and returns the value that is the smaller of the two. For example, if 147.3 and 153.3 are passed as arguments to the function, the function should return 147.3. Fill in the blanks. The code will prompt the user to enter two float values. The program should display the value that is the smaller of the two. # Write a function that takes two numbers and returns the smaller of the two numbers.# This function returns the smaller value of the two. def minimum(num1, num2): if num1 > num2: ## compute the return part of the function (2.5pts) else: ## compute the return part of the function (2.5pts) # Main function.def main(): first = float(input(“Please enter the first closing price: $”)) second = float(input(“Please enter the second closing price : $”)) # Call the function minimum and assign the returned value to a variable named minima (2.5pts) # Print the smaller number to the console (2.5pts) # Call the main function (2pts)