Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 115 def agregarPeces(self,cuantosdecadatamano):
- 116 """Crea un diccionario con el formato {'color':[Peces]}"""
- 117 for color in COLORES:
- 118 for tamano in TAMANOS:
- 119 for x in range(cuantosdecadatamano):
- 120 nodo=Nodo(Pez(tamano,color))
- 121 if color not in self.peces:
- 122 self.peces[color]=ListaEnlazadaPec es(nodo)
- 123 else:
- 124 self.peces[color].append(nodo)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement