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