how to check a string for characters code example Example: How to check a string for specific characters? if '$' in myString: