What is the output of the program below? (Note: This program works as expected)#*************************************# Final Exam#*************************************pear = 7peach = 8#*************************************# Function: main#*************************************def main(): banana = [1, 2, 3, 4, 5] print(banana, pear, peach, "BEFORE FUNCTION") FinalExamFunction(banana) print(banana, pear, peach, "AFTER FUNCTION")# End of the Main Function#*************************************# Function: FinalExamFunction#*************************************def FinalExamFunction(apple): global pear pear = apple[0] apple[0] = apple[4] apple[4] = pear peach = apple[2] print(apple, pear, peach, "INSIDE FUNCTION")# End of FinalExamFunctionmain()#End of Final Exam Program
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here