Python Institute PCPP-32-101 Question Answer
What will be the content of the cars.xml file when you run the following code?
import xml.etree.ElementTree as ET
root = ET.Element('data')
car_1 = ET.SubElement(root, 'car', {'brand': 'Audi'})
car_2 = ET.SubElement(root, 'car', {'brand': 'Volkswagen'})
tree = ET.ElementTree(root)
tree.write('cars.xml', 'UTF-8', True)
Python Institute PCPP-32-101 Summary
- Vendor: Python Institute
- Product: PCPP-32-101
- Update on: Aug 7, 2026
- Questions: 69

