Advertisement
Guest User

Untitled

a guest
May 27th, 2017
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. 115 def agregarPeces(self,cuantosdecadatamano):
  2. 116 """Crea un diccionario con el formato {'color':[Peces]}"""
  3. 117 for color in COLORES:
  4. 118 for tamano in TAMANOS:
  5. 119 for x in range(cuantosdecadatamano):
  6. 120 nodo=Nodo(Pez(tamano,color))
  7. 121 if color not in self.peces:
  8. 122 self.peces[color]=ListaEnlazadaPec es(nodo)
  9. 123 else:
  10. 124 self.peces[color].append(nodo)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement