Very simple problem, although I am having quite a tough time solving it.
Take a look at the code and I will explain below:
def printc(some_text):
split_text = list(some_text)
for x in split_text:
if x is '{'
# this is what i need help with
printc("{CCyan, {RRed, {YYello)
The idea behind this and it is still very early in the code development, but what I am trying to do is create an iterator that searches through "split_text" and finds the character '{' then i want to test what character is situated right next to it. How would i go about doing that?
For example is searches through split_text and finds the first { i want to see if the character next to it is either A, B, C, etc...
Any ideas?