{"id":18025,"date":"2021-08-26T10:42:15","date_gmt":"2021-08-26T05:12:15","guid":{"rendered":"https:\/\/python-programs.com\/?p=18025"},"modified":"2021-11-22T18:37:14","modified_gmt":"2021-11-22T13:07:14","slug":"python-program-for-product-of-maximum-in-first-array-and-minimum-in-second","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-for-product-of-maximum-in-first-array-and-minimum-in-second\/","title":{"rendered":"Python Program for Product of Maximum in First array and Minimum in Second"},"content":{"rendered":"

In the previous article, we have discussed Python Program to Count Divisors of Factorial<\/a>
\nGiven two lists, the task is to find the product of maximum in the given first list and minimum in the given second list.<\/p>\n

Examples:<\/strong><\/p>\n

Example 1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given the First List = [1, 2, 3, 4, 5]\r\nGiven the Second List = [2, 6, 7, 8, 9, 1]<\/pre>\n

Output:<\/strong><\/p>\n

The maximum element in given first list [1, 2, 3, 4, 5] = 5\r\nThe minimum element in given second list [2, 6, 7, 8, 9, 1] = 1\r\nThe product of max_in_fstlst and min_in_seclst [ 5 * 1 ] = 5<\/pre>\n

Example 2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given the First List = [10, 20, 30, 40, 50]\u00a0\r\nGiven the Second List = [1, 2, 3, 4, 5]<\/pre>\n

Output:<\/strong><\/p>\n

The maximum element in given first list [10, 20, 30, 40, 50] = 50\r\nThe minimum element in given second list [1, 2, 3, 4, 5] = 1\r\nThe product of max_in_fstlst and min_in_seclst [ 50 * 1 ] = 50<\/pre>\n

Program for Product of Maximum in First array and Minimum in Second in Python<\/h2>\n

Below are the ways to find the product of maximum in the given first list and minimum in the given second list.<\/p>\n