Alunos = {
111: {
'nome' : 'Joao',
'curso' : 'ADS'
},
222: {
'nome' : 'Pedro',
'curso' : 'SI'
},
333: {
'nome' : 'Maria',
'curso' : 'SI'
}
}
nomes = (aluno['nome'] for aluno in Alunos.values() if aluno['curso'] == 'SI')
for nome in nomes:
print(nome)
QWx1bm9zID0gewogICAgMTExOiB7CiAgICAgICAgJ25vbWUnIDogJ0pvYW8nLCAgCiAgICAgICAgJ2N1cnNvJyA6ICdBRFMnCiAgICB9LAoKICAgIDIyMjogeyAKICAgICAgICAnbm9tZScgOiAnUGVkcm8nLAogICAgICAgICdjdXJzbycgOiAnU0knCiAgICB9LAoKICAgIDMzMzogeyAKICAgICAgICAnbm9tZScgOiAnTWFyaWEnLAogICAgICAgICdjdXJzbycgOiAnU0knCiAgICB9Cn0KCm5vbWVzID0gKGFsdW5vWydub21lJ10gZm9yIGFsdW5vIGluIEFsdW5vcy52YWx1ZXMoKSBpZiBhbHVub1snY3Vyc28nXSA9PSAnU0knKQoKZm9yIG5vbWUgaW4gbm9tZXM6CiAgICBwcmludChub21lKQ==