You can simply do a dict comprehension.
d_final = {k: min(2*v, 300) for k,v in d.items()}
1.4m articles
1.4m replys
5 comments
57.0k users