\"ABCDE\" has no empty character. But when I type
\"\" in \"ABCDE\"
Python interpreter returns True.
True
Why?
is there
Here's a qualitative way to think about it. Consider the following:
>>> "foo"[0:0] ''
Doing a zero-width slice of a string returns ''. So, if you can get '' out of a string, it must be in the string and therefore '' in "foo" must be true.
''
'' in "foo"