def noAlpha(s): #@param s: string #@return string new_s = '' for c in s: if not c.isalpha(): new_s+=c return new_s