How To Check Characters In A String Python