Problem link: https://stackoverflow.com/questions/53994537/update-and-append-on-same-time
I think, the following would be helpful for you.
>>> listx = ["apple","mango","pineapple"]
>>> rets = {
... "author": "Jhonny",
... "old": 17,
... "married": False,