Question: Write the function with Python, Thanks!!!!! Question 5: 3 Marks A palindrome is a word that reads the same backwards as it does forwards, for

Write the function with Python, Thanks!!!!!
Question 5: 3 Marks A palindrome is a word that reads the same backwards as it does forwards, for example 'yay' or racecar. Just as words can be palindromes, so can numbers, so for example 56765 and 133331 are both palindromes but 12331 is not. Question 5: Write a function largest_palindrone_prod (len_1, len_2): that takes two integers len_1 and len_2 and returns the largest palindrome that can be formed by multiplying an integer with len 1 digits and an integer with len 2 digits. For example: If len_1 - 1 and len_2 1, largest_palindrone_prod (len len_2) should return 9, since the largest palindromic number we can make by multiplying together two 1 digit n?mbers is 9 (3 times 3 or 1 times 9). If len_1 1 and len 2 - 2, largest_palindrome_prod (len 1, len_2) should return 828, since the largest palindromic number we can make by multiplying together a 1 digit number and a 2 digit number is 828 (9 tinee If len_1 -2andlen 2 3, largest_palindrome_prod (len_, len_2) should return 94149, since the largest palindromic number we can make by multiplying together a 2 digit number and a 3 digit number is 94149 (99 times 951) A skeleton file called problem5.py is provided (t will be on the desktop). You should write your solution into this file. . You can assume that len 1 and len 2 are integers between 1 and 4 inclusive. Your function should return a value of type int. You should not return (or print) the numbers that produce the palindrome, only the palindrome itself. .You must write your solution in the file called problen5.py found on the desktop. The function that you write must be named largest_palindrome_prod and it must take two parameters. Remember that your solution file must contain only function definitions, comments, and optionally import statements. If it contains anything else, it is invalid and you will receive zero marks. If you run the testing program, it will tell you if your file is invalid
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
