str_1 = "Hello, future-people!"
print(str_1[2:5])
# llo
str_1 = "Hello, future-people!"
print(str_1[10:])
# ure-people!
str_1 = "Hello, future-people!"
print(str_1[::2])
# Hlo uuepol!
str_1 = "Hello, future-people!"
print(str_1[::3])
# Hl teel
str_1 = "Hello, future-people!"
print(str_1[5:-3])
# , future-peop
str_1 = "Hello, future-people!"
print(str_1[-1::-1])
# !elpoep-erutuf ,olleH
nums = (1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16)
print(nums[2:5])
print(nums[10:])
print(nums[::2])
print(nums[::3])
print(nums[5:-3])
print(nums[-1::-1])
# (3, 4, 5)
# (11, 12, 13, 14, 15, 16)
# (1, 3, 5, 7, 9, 11, 13, 15)
# (1, 4, 7, 10, 13, 16)
# (6, 7, 8, 9, 10, 11, 12, 13)
# (16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1)