To visit every second character in S, for example, slice with a stride of 2:
S = 'abcdefghijk' for c in S[::2]: print(c, end=' ')