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 <
[email protected]> ha scritto:
> Ciao carissimo Giovanni, ben riletto.
>
> No, hai capito bene. Grazie.
>
> _______________________________________________
> Python mailing list
> [email protected]
> https://lists.python.it/mailman/listinfo/python
>
--
Luca
_______________________________________________
Python mailing list
[email protected]
https://lists.python.it/mailman/listinfo/python