#p232
import xml.etree.ElementTree as ET
from xml.etree.ElementTree import Element, SubElement

root = Element("drink")
name =SubElement(root ,"name") #부모가 누군지 써줘야함
price=SubElement(root ,"price")
cup=SubElement(root ,"cup")
ice=SubElement(root ,"ice")
sugar=SubElement(root ,"sugar")

name.text="하동녹차쉐이크"
price.text="4000"
cup.text="0"
ice.text="3"
sugar.text="3"
#xml 구조 다만듬!!!!!!

ET.ElementTree(root).write("order.xml" , encoding="UTF-8", xml_declaration=True)


