Sovle with python 3.8 please.
1, Write a function called same_without_ends that has two stringparameters. It should return True if those strings are equalWITHOUT considering the characters on the ends (the beginningcharacter and the last character). It should return Falseotherwise. For example, \"last\" and \"bask\" would be considered equalwithout considering the characters on the ends. Don't worry aboutthe case where the strings have fewer than three characters. Yourfunction MUST be called same_without_ends. You can write code inthe main part of your program to test your function, but when yousubmit, your code must ONLY have the function definition!
2, Write a function called replace_es_with_threes that has asingle string parameter. It should return a version of the stringwhere all instances of the letter e have been replaced by the digit3.
Your function MUST still be called replace_es_with_threes. Youcan write code in the main part of your program to test yourfunction, but when you submit, your code must ONLY have thefunction definition!