def half_secret(d, k):
 l = len(d[k])
 if (l > 2):
  d[k] = (d[k][:2] + ('*' * (l - 2)))
 else:
  d[k] = ('*' * l)

def half_secret ( d , k ) : l = len ( d [ k ] ) if ( l > 2 ) : d [ k ] = ( d [ k ] [ : 2 ] + ( '*' * ( l - 2 ) ) ) else : d [ k ] = ( '*' * l )
hidden part of the secret .