how to access the last value of a list in python code example Example: access last element of list python MyList=["Black","Blue","Red","Green"] print(MyList[-1])