I have a string "ATCGATCG"
and I want it to be reversed so its "GCTAGTCA"
. I thought about using:
data_r2[total:]+s[0]
Where total is the result from a counting script I have which will count the number of characters in the string. I realise that this will rotate the string and just end up with the same order if totally rotated which isn't what I want at all.
Does anyone know how to do this so it is the input string reversed so the right most character is now the left most character etc?