Python - Me ayudan con este algoritmo por favor.

Filtrado por el usuario: Richard
<<>>
Filtrado por el usuario 'Richard' (Eliminar fitro)
 
Vista: