thedate = input("Date (d/m/y)> ") listdate = thedate.split("/") print(listdate) ##tmp = listdate[1] ##print(listdate) ##listdate[1] = listdate[0] ##print(listdate) ##listdate[0] = tmp ##print(listdate) ## ##ad = listdate[0] + '/' + listdate[1] + '/' + listdate[2] ##print(ad) print('--------') ad = listdate[1] + '/' + listdate[0] + '/' + listdate[2] print(ad) listmonth = [ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December" ] adl = listmonth[int(listdate[1])-1] + " " + listdate[0] + ", " + listdate[2] print(adl)