Slices and [::-1] on text
Text slices just like lists: p[:4] is the first four characters, p[4:] is the rest, and p[::-1] is the whole thing backwards.
Challenge A:p = "x...x.x.". Reverse it with r = p[::-1] and play the kick wherever r has an "x".