For this Question: Peter has the task to write a program that processes N strings. Some of them have Russian and European format "day.month.year", while others use American format — "month/day/year".
Here, year is a number from 1 to 9999, which may contain leading zeroes to get 2, 3 or 4 digits, month — number from 1 to 12, which may contain leading zero to get 2 digits, day — number from 1 to 31, which may contain leading zeros to get 2 digits.
Print each date in two formats: first as "DD.MM.YYYY', second as "MM/DD/YYYY".
For better understanding see sample.The first line of input contains one integer N (1 <= N  <= 100).

Each of the following N lines contain one date in format "day.month.year" or "month/day/year".Print 𝑛 lines. Each line should contain the date in two formats: first as "DD.MM.YYYY", second as "MM/DD/YYYY".Sample Input
2
11.12.2000
1.2.1

Sample Output
11.12.2000 12/11/2000
01.02.0001 02/01/0001

Sample Input
2
20.10.2100
1/29/3000

Sample Output
20.10.2100 10/20/2100
29.01.3000 01/29/3000, I have written this Solution Code: n = int(input())
while(n > 0):
	s = input()
	d = ""
	m = ""
	y = ""
	if('.' in s):
		s = s.split('.')
		for i in range(0, 2-len(s[0])):
			d += '0'
		d += s[0]
		for i in range(0, 2-len(s[1])):
			m += '0'
		m += s[1]
		for i in range(0, 4-len(s[2])):
			y += '0'
		y += s[2]
	else:
		s = s.split('/')
		for i in range(0, 2-len(s[0])):
			m += '0'
		m += s[0]
		for i in range(0, 2-len(s[1])):
			d += '0'
		d += s[1]
		for i in range(0, 4-len(s[2])):
			y += '0'
		y += s[2]
	print(d+'.'+m+'.'+y, end = ' ')
	print(m+'/'+d+'/'+y)
	n = n-1, In this Programming Language: Python, Now tell me if this Code is compilable or not?