# define a list of programming Languages
languages = ['java', 'python', 'perl', 'ruby', 'c#']
# access the first index and Change the value to kotlin
languages[0] = 'Kotlin'
# print the first item to see if it has been modified
print(languages[0])

# access the last index and Change the value to kotlin
languages[-1] = 'c++'
# print the last item to see if it has been modified
print(languages[-1])

# print the new list,
# pay attention to the first and last indev
print(languages)  # ['Kotlin', 'python', 'perl', 'ruby', 'c++']
