Pregunta de entrevista de Dummy

How to allocate assets on a portfolio efficiently using Python?