# Function to convert a date string to month, day, year def main(): # get the date dateStr = input("Enter a date (mm/dd/yyyy): ") # split into components monthStr, dayStr, yearStr = dateStr.split("/") months = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"] monthStr = months[int(monthStr)-1] # output formatted date print("Nicely formatted date is: ", monthStr, dayStr+",", yearStr)