How To Check For Substring In Python