When updating and adding elements of a dict object, I don't know how to do it neatly.
I understand that the following 2 methods are possible, which of the two do you prefer?
There may be factors that affect individual tastes, but I'm thinking about it because I feel that both are somewhat messy. ㅜ<python dictionary
I prefer the second one. I think it's more intuitive
© 2022 pinfo. All rights reserved.