Child elements

Report a typo

Look at the following XML document.

<user>
    <login>admin123</login>
    <password>qwerty</password>
    <email>[email protected]</email>
</user>

The root variable is an instance of the Element class representing this XML element.

What is the result of the following line of code?

print(root[1].text)
Enter a short text
___

Create a free account to access the full topic