"I had given up some youth for knowledge," reflects a recognition of the sacrifices made in the pursuit of learning. This indicates that gaining wisdom and understanding often requires foregoing youthful innocence or carefree days. Despite this trade-off, the author feels that the benefits of knowledge outweigh the personal cost, emphasizing the value placed on education and growth.
"But my gain was more valuable than the loss," suggests that the knowledge acquired has enriched her life significantly. It highlights the importance of perseverance and dedication to personal development. Through this perspective, Maya Angelou conveys that the pursuit of knowledge is a worthwhile journey, even if it means sacrificing aspects of youth along the way.