how to access the last member of list in python code example Example: python last element of list print(list[-1])