is there a way to refer to every 2nd symbol of a string?
mystring = 'bananasplit'
i want to refer to every 2nd and every 3rd symbol of any string the user types in.
in this case the 1st symbol is 'b', the 2nd is 'a', the 3rd is 'n' ... and then it starts counting again -> 1st is 'a', second is 'n', 3rd is 'a', then it starts counting again ... and so on ...
is there a way to change every 2nd symbol to 'x' and every 3rd symbol to 'y' - the first symbol should be left as it is
how can i refer to every 2nd / 3rd symbol (not knowing the string)
Thanks in advance