import sys dna = sys.stdin.read().strip()for i in 'ACGT': print dna.count(i),
AGCTTTTCATTCTGACTGCAACGGGCAATATGTCTCTGTGTGGATTAAAAAAAGAGTGTCTGATAGCAGC
20 12 17 21
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!