Advertisement
T-D-K

Untitled

May 23rd, 2018
234
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. str = input()
  2. print(str[2])
  3. print(str[-1:])
  4. print(str[0:5])
  5. print(str[0:-2])
  6. print(str[0::2])
  7. print(str[1::2])
  8. print(str[::-1])
  9. print(str[::-1][::2])
  10. print(len(str))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement