so i am trying to write a code that takes is a function for defining Amino Acids. This function takes in a sequence and translates it into mRNA (DNA= ATCGATCG, mRNA= AUCGAUCG) i have no problem with this. The one problem I am having seems like the simplest part of the whole thing. taking in the mRNA and looping throw it 3 characters at a time (AUC, GAU) and disregards any remanding characters. Any help would be appreciated seeing how I have already pulled out everything in my tiny CS1 arsenal.
All 4 Replies
Be a part of the DaniWeb community