fork download
  1. def ta(s):
  2. t=""
  3. for i in range(len(s)):
  4. if s[i]=="T":
  5. zn="*"
  6. elif s[i]=="G":
  7. zn="*"
  8. elif s[i]=="G":
  9. zn="*"
  10. else:
  11. zn="A"
  12. t=zn+1
  13. return t
Success #stdin #stdout 0.02s 9232KB
stdin
ta("TGACCCA")
stdout
Standard output is empty