friends = ["Rolf", "Charlie", "Anna", "James", "Sarah"]

print(friends[2:4])
print(friends[1:])
print(friends[:4])
print(friends[:]) # makes a copy of the list
print(friends[-3])
print(friends[-3:4])
print(friends[-3:-1])


friends = ["Rolf", "Charlie", "Anna", "James", "Sarah"]

print(friends[2:4])
print(friends[1:])
print(friends[:4])
print(friends[:]) # makes a copy of the list
print(friends[-3])
print(friends[-3:4])
print(friends[-3:-1])


# makes a copy of the list