Were d is your dictionary and n is the printing number:
for idx, (k, v) in enumerate(d):
if idx == n: break
print((k, v))
Casting your dictionary to list can be slow. Your dictionary may be too large and you don't need to cast all of it just for printing a few of the first.