4

I'm looking for a field calculator Python statement to delete only the first two letters of string entries. For Ex:

!Name!.strip([0:2])

I know this syntax is incorrect.

15

You slice the string to be the third character through the end of the string (strings are zero indexed).

!Name![2:]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.