Light Mode
Dark Mode
help

Hi guys,

Why it doesn't work:

if text.count(symbol) >= 2:
    c  = 0
    for i in text:
        if i == symbol:
            c += 1
            if c == 2:
                return text.index(i)
else:
    return None

Thanks

Created: Jan. 23, 2019, 5:12 p.m.
Updated: Jan. 26, 2019, 11:08 p.m.
0
7
User avatar
ArsenPython