結論
辞書 sample_dic の後ろ n 個分を前から順番に処理する場合
dict(list(sample_dic.items())[-n:])
説明
辞書ではスライスを使えないので、一旦、リストに変換しスライスを使って後ろn個を取り出す。それを再度、辞書に変換する。
補足
辞書に順番があるのは Python 3.7 以降。
サンプル
sample_dic = {"a": 1, "b": 2, "c": 3, "d": 4, "e": 5, "f": 6, "g": 7, "h": 8}
for k,v in dict(list(sample_dic.items())[-3:]).items() :
print(k,v)
実行結果
f 6
g 7
h 8