Effect of tilde on booleans — why ~True is -2 & ~False is -1 in Python?
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Thinking It Over
--
Chapters
00:00 Effect Of Tilde On Booleans — Why ~True Is -2 &Amp; ~False Is -1 In Python?
00:51 Accepted Answer Score 7
01:15 Thank you
--
Full question
https://stackoverflow.com/questions/6348...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #boolean
#avk47
    Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Thinking It Over
--
Chapters
00:00 Effect Of Tilde On Booleans — Why ~True Is -2 &Amp; ~False Is -1 In Python?
00:51 Accepted Answer Score 7
01:15 Thank you
--
Full question
https://stackoverflow.com/questions/6348...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#python #boolean
#avk47