Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def sol():
- s = input()
- print(len(s))
- print(s[-3]+s[-2]+s[-1])
- b = "".join(reversed(s))
- for i in range(0, len(b)):
- if i % 2 == 0:
- print(b[i], end="")
- print()
- for i in range(0, len(s)-2):
- print(s[i], end="")
- print()
- for i in range(0, 5):
- print(s[i], end="")
- print()
- for i in range(0, len(s)):
- if i % 2 == 0:
- print(s[i], end="")
- print()
- for i in range(0, len(s)):
- if i % 2 == 1:
- print(s[i], end="")
- print()
- print(b)
- print(b[1])
- if __name__ == "__main__":
- sol()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement