Intel Corporation interview question

How do you parse a string for chars in python?