Final answer:
The three parts of the excerpt from Beowulf that relate to a warrior code are: the importance of avenging a friend, facing mortality and pursuing glory, and protecting one's community.
Step-by-step explanation:
The three parts of this excerpt from Beowulf that relate to a warrior code are:
- Beowulf's statement that it is better to avenge a friend than to mourn for them, which reflects the importance of honor and loyalty in warrior culture.
- Beowulf's declaration that each warrior must face their own mortality and strive for glory before death, highlighting the bravery and courage expected of warriors.
- Beowulf promising to pursue and defeat the kinsman of Grendel, demonstrating the warrior's duty to protect their community from threats.