Created
March 6, 2019 22:46
-
-
Save pdbartsch/f794172ac048aea90a7deedb283adfd8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# expression: | |
abbreviate(!SciName!) | |
# code block: | |
def abbreviate(x): | |
words = x.split() | |
letters = [word[:2] for word in words] | |
return "".join(letters) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment