friends = ['zhazha', 'zhanan', 'zhanv', 'zhadi', 'zhagod', 'zhazi']

print("original:")
print(friends)

print("\nThe first three items in the list are:")
print(friends[:3])

print("\nThree items from the middle of the list are:")
print(friends[2:5])

print("\nThe last three items in the list are:")
print(friends[-3:])

ec6ddad1b6b3698f682e188d504a7a885002ab81
<mask token>

<mask token>
print('original:')
print(friends)
print("""
The first three items in the list are:""")
print(friends[:3])
print("""
Three items from the middle of the list are:""")
print(friends[2:5])
print("""
The last three items in the list are:""")
print(friends[-3:])

friends = ['zhazha', 'zhanan', 'zhanv', 'zhadi', 'zhagod', 'zhazi']
print('original:')
print(friends)
print("""
The first three items in the list are:""")
print(friends[:3])
print("""
Three items from the middle of the list are:""")
print(friends[2:5])
print("""
The last three items in the list are:""")
print(friends[-3:])

friends = ['zhazha', 'zhanan', 'zhanv', 'zhadi', 'zhagod', 'zhazi']

print("original:")
print(friends)

print("\nThe first three items in the list are:")
print(friends[:3])

print("\nThree items from the middle of the list are:")
print(friends[2:5])

print("\nThe last three items in the list are:")
print(friends[-3:])
