I am learning python. I want to store one by one element in array or list. this is my code.
for u in durl:
p2 = requests.get(u)
tree = html.fromstring(p2.content)
dcode.append = tree.xpath(ecode)
print(dcode)
in dcode variable the elements are overriding not appending. i want to insert it one by one. please help me.