Answers for "python append to a dict"

2

dictionary append value python

d = {1:2}
d.update({2: 4})
print(d) # {1: 2, 2: 4}
Posted by: Guest on December-29-2020

Python Answers by Framework

Browse Popular Code Answers by Language