52  Using string methods{#exr-string-methods}

Open in Google Colab | Download notebook


We have written a function to compute the reverse complement of a sequence.

a) Write that function again, still using a for loop, but do not use the built-in reversed() function.

b) Write the function one more time, but without any loops.