fork(1) download
  1. f = \
  2. lambda s,j=''.join:j('ACGT'[int(j(t),2)]for t in
  3. zip(*[iter(bin(int(j(`ord(c)`for c in s))*2)[2:])]*2))
  4.  
  5. for s in 'codegolf', 'ppcg', '}':
  6. print f(s)
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
GGCTTGCGGCCGGAGACGCGGTCTGACGCCTTGTAAATA
GGCTAATTGTCGCACTT
TTGG