def common_prefix(*seqs):
 if any(((not s) for s in seqs)):
  return []
 elif (len(seqs) == 1):
  return seqs[0]
 i = 0
 for i in range(min((len(s) for s in seqs))):
  if (not all(((seqs[j][i] == seqs[0][i]) for j in range(len(seqs))))):
   break
 else:
  i += 1
 return seqs[0][:i]

def common_prefix ( * seqs ) : if any ( ( ( not s ) for s in seqs ) ) : return [ ] elif ( len ( seqs ) == 1 ) : return seqs [ 0 ] i = 0 for i in range ( min ( ( len ( s ) for s in seqs ) ) ) : if ( not all ( ( ( seqs [ j ] [ i ] == seqs [ 0 ] [ i ] ) for j in range ( len ( seqs ) ) ) ) ) : break else : i += 1 return seqs [ 0 ] [ : i ]
return the subsequence that is a common start of sequences in seqs .