Posts by Jss Albert • 1 point
1 post
-
-3
votes3
answers87
viewsQ: Working logic error with list
I’d like to know how I make the result equal to: esta é a lista[{'h': 'h'}, {'h': 'j'}, {'h': 'z'}] a, b= ['h', 'j', 'z'], list() c= dict() for i in a: print(i) c['h']= i print(c) b.append(c)…
pythonasked Jss Albert 1