I am Hack Sparrow
Captain of the Internets.

Python: check if a character or substring is in a string

Let me start with a little history about myself. I have been developing on the Web for more than five years now - in PHP. Yes, in goddamn PHP! I had been exposed to Python much earlier, but for some strange reason I never made the effort to learn it or use it. If I had learnt Python earlier, I wouldn't be struggling to to check if a substring exists in a string or not today. On the brighter side, I realize what a beauti ...