def get_even_palindrome_at(user_input, index):
    user_input = user_input.lower()
    user_input = remove_non_words(user_input)
    
    start_index, end_index = index, index
    
    while start_index >= 0 and end_index < len(user_input): 
        if user_input[start_index] == user_input[end_index]: 
            start_index -= 1
            end_index += 1
        else:
            break

    result = "" 
    count_index = start_index
    
    while count_index < end_index:
        result += user_input[count_index]
        count_index = count_index + 1
    return result

I get output "ou"
What happened to the rest "ouuo"?

please, someone I need some assistance

You can't use break

Please help me out
I still dont get it

I get output "ou"
What happened to the rest "ouuo"?

please, someone I need some assistance

What was your input?

His input was probably ouuo.
Well I figured out how to do the odd one without using break... I'm sure the even one is similar to the odd one =].

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.