r/learnpython • u/bkabartsy • Sep 26 '24
Empty strings - am i tripping?
>>> '' in 'abc'
Truecan someone explain? (python 3.12.6)
1
Upvotes
r/learnpython • u/bkabartsy • Sep 26 '24
>>> '' in 'abc'
Truecan someone explain? (python 3.12.6)
-77
u/my_password_is______ Sep 26 '24
oh come on
that is NOT a good reason for a programming language
you can LITERALLY see '' is NOT in 'abc'
using standard set theory you end up with stupid shit like this