iNTERFACEWARE Products Manual > Installing and Using Chameleon > Using Python Scripting > Python Scripting Examples > String Manipulation > Adding Underscores to a SSN |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
You can easily add underscores to a Social Security Number (SSN) using a simple Python script. In this example, the SSN is formatted as one long string. The code adds underscores where appropriate:
When this script is executed, an SSN of 456679123 would become 456_67_9123.
|