def check_prev_char(password, current_char_set):
    """Function to ensure that there are no consecutive 
    UPPERCASE/lowercase/numbers/special-characters."""

    index = len(password)
    if index == 0:
        return False
    else:
        prev_char = password[index - 1]
        if prev_char in current_char_set:
            return True
        else:
            return False
Function to ensure that there are no consecutive 
    UPPERCASE/lowercase/numbers/special-characters.
recipes/Python/578169_Extremely_Strong_Password/recipe-578169.py