The Python Oracle

Why does "1 in range(2) == True" evaluate to False?

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

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Ancient Construction

--

Chapters
00:00 Question
00:41 Accepted answer (Score 12)
01:36 Answer 2 (Score 1)
01:52 Thank you

--

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

--

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

--

Tags
#python

#avk47