Can u please tell me how to detect ascii and non-ascii strings in python?

Editor's note: In the future, please give your thread a meaningful title.

I almost never read a thread that starts with "Please help me". It is too vague to even bother with. This was one of the results of a google for "python ascii" . You can also use the ord() function (google for it) on each character to see if the decimal value is within the ASCII range. You will also have to google for ASCII decimal ranges if you don't know what they are. Also, please add "Solved" to the topic if this answers your question, so others won't waste their time reading a thread that has already been solved.
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/163743

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.