def get_decades(year):
 if year:
  try:
   decade = (year[2:3] + '0')
   decade2 = (year[:3] + '0')
  except:
   decade = ''
   decade2 = ''
 else:
  decade = ''
  decade2 = ''
 return (decade, decade2)

def get_decades ( year ) : if year : try : decade = ( year [ 2 : 3 ] + '0' ) decade2 = ( year [ : 3 ] + '0' ) except : decade = '' decade2 = '' else : decade = '' decade2 = '' return ( decade , decade2 )
return 4 digit and 2 digit decades given year .