I’m making a program to try to show the genotypic ratio of a dihybrid punnet square. I’m up to the point where I can create an answer, but I need to sort it.
Example= answer_one = “aTAt”
I need to sort it so that the answer becomes “AaTt”. Basically the method of sorting needs to make the string alphabetical, and put the capital letter before the lowercase one.
When I try to sort it, it becomes aAtT, and that’s exactly what I don’t want.