your_list = ["apple", "orange", "grapes"] last_value = your_list[-1]
Here is what the above code is Doing:
1. We create a list called your_list.
2. We create a variable called last_value and set it equal to the last element in your_list.
3. We print the value of last_value.