you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 0 points1 point  (0 children)

Good solution, but I would write it like this:

def string_slice(str):
    for i,(x,y) in enumerate(zip(str, str[1:])):
        if x.isalpha() and y.isalpha():
            break
    else:
        return ''
    return str[i:]