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)

What will be the output from your file? What’s the value in…

What will be the output from your file? What’s the value in your console if you run the code below?   Let’s read another list. my_list = The value of len(my_list) is The values of my_list is What will be the last element in my_list if you run my_list.append(30)   Hint: When you do list slicing, is the returned value a list or (a) value(s)? Please be careful 🙂

The following four questions are another example showing you…

The following four questions are another example showing you that class and objects are an essential part of many software applications. Assuming that you found a job as the software engineer in UT library. You will be working with books on a daily basis. The following three questions are related to the Book class, which is a fundamental class in UT library management systems.  Following the previous question, you have a subclass called Novel that inherits from the parent class Book. The Novel subclass has an additional public attribute for genre. You want to inherit the __str__ from the Book superclass and inherit this specialized attribute. Which of the following correctly demonstrates how to do this?