python-dict-last-key
This is no longer the case. Dictionary keys are officially ordered as of Python 3.7 (and unofficially in 3.6).
dict.keys()[-1]
error: TypeError: 'dictkeys' object is not subscriptable
https://stackoverflow.com/a/26394855/12539782 https://stackoverflow.com/a/16125237/12539782