On 25/01/2022 13.46, bnmng wrote:
Hello,

Is there a built in function that compares two or more lists and returns elements common to all?


The intersect member function almost does that, just combine in with converting your list to a set:

https://datagy.io/python-intersection-between-lists/

BTW it is better to ask questions like these on mailing lists dedicated to Python programming in general.

Kind regards,

Kasper Laudrup

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/c057ae1b-eaf8-f32c-84d2-dc37743b62ed%40stacktrace.dk.

Attachment: OpenPGP_0xE5D9CAC64AAA55EB.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature

Reply via email to