Skip to content

Instantly share code, notes, and snippets.

@acwoss
Created May 18, 2018 00:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save acwoss/34e37f937b3989c02ff94d9e3caeac90 to your computer and use it in GitHub Desktop.
Save acwoss/34e37f937b3989c02ff94d9e3caeac90 to your computer and use it in GitHub Desktop.
QuizzicalStupidParallelalgorithm created by acwoss - https://repl.it/@acwoss/QuizzicalStupidParallelalgorithm
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment