I have a bunch of phone numbers and some contain a 1 in front of them e.g. "18885556607" and I would like to simply remove the 1. I can't just remove all first characters because there are numbers like "8665558411"
Here is the code I've tried:
def splitme(s): if (s[:1] == "1"): return s[2:] else: return(s)
splitme( !Phone! )
The field is a string field, please let me know what I need to change.