how to print last value of dictionary in python code example Example: get last element of dictionary python list(dict)[-1]