Why does the test caes 3&4 isn't working properly??
n = input() b = n.count("/") dic = { 'January':'1','February':'2',' March':'3','April':'4','May':'5','June':'6','July':'7','August':'8','September':'9','October':'10','November':'11','December':'12' } if b>0: c = n.split("/") print(c[1]+"/"+c[0]+"/"+c[2]) else: x = str(n.split(" ")) for key, value in dic.items(): x = x.replace(key, value) h = x.replace(" ","") v = h.replace(",","") print(str(v[5]+"/"+v[2]+"/"+v[8:12])) You and your friends are going to Europe! You have made plans to travel around Europe with your friends, but one thing you need to take into account so that everything goes according to play, is that the format of their date is different than from what is used in the United States. Your job is to convert all your dates from MM/DD/YYYY to DD/MM/YYYY. Task: Create a function that takes in a string containing a date that is in US format, and return a string of the same date converted to EU. Input Format: A string that contains a date