6

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.

0

1 Answer 1

18

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

!Name![2:]
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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