Ok, so from my last post, you might have figured that I'm making a coder/decoder package. Anyways, say I've got a string of letters that i want to decode, such as:
AAAGGGCCC
Which should produce:
ACB
Because a=aaa c=ggg and b=ccc
Currently with my program, you have to input one three letter string at a time, then it translates it to the one letter string. How could I get python to read every three letters in the string in order, then output the result? For instance, with my program as is you have to do the following:
AAA <enter>
GGG <enter>
CCC <enter>
Then it outputs ACB.
How could i do this?
AAAGGGCCC <enter>
Then outputs ACB.
So yeah, how do I do that?