rooms = ["bedroom", "bathroom", "living room", "kitchen", "dining room"]
#           0          1             2             3           4
#          -5         -4            -3            -2          -1

print(rooms)

print(rooms[2])

# living room, kitchen, dining room
print(rooms[2:])

# living room, kitchen
print(rooms[2:4])

# print the last item in a list
print(rooms[-1])

print(rooms[-1:])

print(rooms[-3:])

print(rooms[3::-1])
