Baby Steps in Data Journalism

Starting from zero, this Tumblr provides tools, links and how-to information for people just beginning to explore data journalism.
Posts tagged "empty"

"No matter what the string is, we can find the empty string." — David Evans

"We don’t actually see it, but it’s there." — David Evans

So when you have a string (with any contents at all), e.g. —

s = "unbelievable"

— you will find the empty string at 0 (the first position):

>>> print s
unbelievable
>>> s.find('u')
0
>>> s.find('')
0
>>> s.find('bel')
2
>>> s.find('v')
7