how to get first two letters of a string pyhon code example Example: string pick the first 2 characters python t = "your string" t[:2]