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)
0
u/bkabartsy Sep 26 '24
TIL, thank you.
what is the pythonic way of initializing an empty string and writing a
whileloop to populate that string with user input?