MidtermProgram 1: Writing a function with decisionWrite a function with three integer parameters that returns the smallest of the three. You cannot use any predefined function that finds the min for you - you must write the decision statements that choose the smaller integer to return. Write a program to test your function on the following argument triplets: 3, 6 & 4; 5, 3 & 2; 4,4 & 4.Program 2: Writing a function with iterationWrite a function with a single parameter that is a list of strings. The function returns the total length of all the strings in the list. Write a program to test your function on the following list: [the,quick,brown,fox,jumped,over,the,lazy,dog].Program 3: Writing a function with decision and iterationWrite a function with a single parameter that is a list of strings. The function returns the number of strings in the list that have an even number of characters. Write a program to test your function on the following list: [the,quick,brown,fox,jumped,over,the,lazy,dog].Program 4: Writing a function with iterationWrite a function a single integer parameter. The function returns the product of all the whole number from 1 to the parameter, inclusive. For example, if the argument to your functions is 5, then the function should return 120, which is 5! = 5*4*3*2*1. Remember the range() function that will turn an integer into a list. Write a program to test your function on the following parameters: -3, 0, 6.Program 5: Writing a function with decision and iterationWrite a function with a single parameter that is a list of integers. The function returns the largest integer in the list. You may not use any predefined list functions for this problem. Write a program to test your function on the following list: [2,5,4,7,5,7].