Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text = "gosho"
- first_two_letters = text[:2]
- print(first_two_letters) # go
- second_two_letters = text[2:4]
- print(second_two_letters) # sh
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement