We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Would the following change the existing code be more efficient?
>>> for name in instruments.keys(): ... print('{} - {}'.format(name, ... instruments[name]))
Or
>>> for name, instrument in instruments.items(): ... print('{} - {}'.format(name, ... instrument))