""" Write a function date that has 1 parameter, string, that represents the date and its written using the following format: mm-dd-year (2 digits for the mothh, 2 digits for the day and 4 digits for the year and '-' as a separator char). Function returns a new string, day written in the following format: name_of__the_month/dd/year Assume that input is valid For example, if the date is 02-03-2020 function returns: February/03/2020 Write main to test the function. """ def date(string): month=string[0:2] day=string[3:5] year=string[6:] print(month, day, year) list_month=['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] month_name=list_month[(int)(month)-1] print("month name", month_name) return month_name+'/'+day+'/'+year def main(): string=input("enter date ") print("new format", date(string)) main()