ex6 for python pertaining to strings and text