def ile(s): return [s.count("A"), s.count("C"), s.count("G"), s.count("T"),]print(ile("CAATAAAAA"))print(ile("TCTAAAGATATCGGG"))
Standard input is empty
[7, 1, 0, 1] [5, 2, 4, 4]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!