dictionary Python Dictionary A Python dictionary is a powerful data structure that allows you to store key-value pairs. It is an unordered…