• + 0 comments

    python

    def dayOfProgrammer(year):
        if year==1918:
            return '26.09.1918'
        elif year > 1918 and ((int(year)%400==0) or (int(year)%4==0 and int(year)%100!=0)):
                return '12.09.'+str(year)
        elif year < 1918 and (int(year)%4==0):
            return '12.09.'+str(year)
        else:
            return '13.09.'+str(year)