SHARE
TWEET

Untitled

a guest Jun 15th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def get_materias_disponiveis(materias):
  2.   codigos_materias_feitas = []
  3.   materias_disponiveis = []
  4.   for materia in materias:
  5.       if materia['status'] == 'feita':
  6.            codigos_materias_feitas.append(materia['codigo'])
  7.  for materia in materias:
  8.     if materia['status'] == 'nao feita':
  9.         if(all(x in materias_feitas for x in materia['dependencias'])):
  10.             materias_disponiveis.append(materia)
  11.    
  12.   return materias_disponiveis
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top