+ 1
Date -year format
The United Nations organization released an official document regarding the most important events from the beginning of the time lik DD-MM-YY format find the total number of events described in the document input:string containing the description of the document
1 Resposta
+ 1
import re
x=input("Enter your Input : ")
r=re.findall(r"[\d]{2}-[\d]{2}-[\d]{4}",x)
dist_year=[]
for i in r:
if i.split("-")[2] not in dist_year:
dist_year.append(i.split("-")[2])
print(len(dist_year))