Qualcosa del tipo ?

def find_granpa(obj, what):
    what = what.lower()
    return {k: v for k, v in obj.items() if (what in k.lower() or what in
str(v).lower())}

Il giorno mer 14 giu 2023 alle ore 22:02 Gabriele Battaglia <
iz4...@libero.it> ha scritto:

> Ciao carissimo Giovanni, ben riletto.
>
> No, hai capito bene. Grazie.
>
> _______________________________________________
> Python mailing list
> Python@lists.python.it
> https://lists.python.it/mailman/listinfo/python
>


-- 
Luca
_______________________________________________
Python mailing list
Python@lists.python.it
https://lists.python.it/mailman/listinfo/python

Rispondere a