Print the names of all ancient Greek Goddesses in the document. Put each name on a new line.
BeautifulSoup: working with XML
Greek Goddesses
Report a typo
Write a program in Python 3
from bs4 import BeautifulSoup
goddesses = '<?xml version="1.0" encoding="UTF-8"?> \
<goddesses> \
<goddess>Hestia</goddess> \
<goddess>Hebe</goddess> \
<goddess>Nemesis</goddess> \
<goddess>Leto</goddess> \
<goddess>Rhea</goddess> \
<goddess>Aphrodite</goddess> \
<goddess>Demeter</goddess> \
<goddess>Artemis</goddess> \
<goddess>Hera</goddess> \
<goddess>Athena</goddess> \
<goddess>Cybele</goddess> \
<goddess>Persephone</goddess> \
<goddess>Nyx</goddess> \
<goddess>Selene</goddess> \
<goddess>Tyche</goddess> \
<goddess>Maia</goddess> \
<goddess>Lachesis</goddess> \
<goddess>Iris</goddess> \
<goddess>Nike</goddess> \
<goddess>Keres</goddess> \
</goddesses>'
# put your code here
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.