How can I check if a string has several specific characters in it using Python 2?

For example, given the following string:

The criminals stole $1,000,000 in jewels.

How do I detect if it has dollar signs (“$”), commas (“,”), and numbers?

7 Answers
7

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *