Hello!
I could really use some help with a function. I have no experience with phyton and this seems like it could be fairly difficult.
I am trying to label my features. I have a field [trakt] from which i would like to extract the first letter, and if there is a space, I would also want to extract the first letter after that space.
The field [trakt] has names in it, for example it could be "South Sweden", "North Sweden" and "Sweden". If the name is "North Sweden" I would like the script to return "NS", but if the name is "Sweden", the script should return only "S". But in reality I have about 50 different names I would like to do this with (edited).
Is this problem possible to solve?