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.
asked Mar 12, 2013 at 20:20
1 Answer 1
You slice the string to be the third character through the end of the string (strings are zero indexed).
!Name![2:]
answered Mar 12, 2013 at 20:37
Explore related questions
See similar questions with these tags.
lang-py