The Python Oracle

How can I return True if x is in either of multiple lists?

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Track title: CC H Dvoks String Quartet No 12 Ame

--

Chapters
00:00 Question
00:35 Accepted answer (Score 10)
00:53 Answer 2 (Score 3)
01:34 Answer 3 (Score 2)
01:47 Answer 4 (Score 1)
02:12 Thank you

--

Full question
https://stackoverflow.com/questions/2382...

Answer 1 links:
[itertools.chain]: https://docs.python.org/2/library/iterto...
[unpack it with the ]: https://docs.python.org/2/tutorial/contr...

Answer 2 links:
[any]: https://docs.python.org/2/library/functi...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #list #return

#avk47