t = "your string" t[:2]
Here is what the above code is Doing:
1. We create a variable called t and set it equal to the string “your string”.
2. We then use the slice notation to select the first two characters of the string.
3. We print the result.