list = ["Python", "Java", "C++", "Javascript", "SQL", "PHP"]
print(list[-1]) # "PHP"
print(list[-4]) # "C++"
print(list[:-3]) # ["Python", "Java", "C++"]
print(list[-2:]) # ["Javascript", "SQL", "PHP"]
print(list[-5:-2]) # ["Java", "C++", "Javascript"]