Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- str = input()
- print(str[1])
- print(str[-2:-1])
- print(str[0:4])
- print(str[0:-3])
- print(str[0::2])
- print(str[1::2])
- print(str[::-1])
- print(str[::-1][::3])
- print(len(str))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement