Answers for "python dict elemente hinzufügen"

1

python dict elemente hinzufügen

default_data = {'item1': 1,
                'item2': 2,
          	    }

default_data.update({'item3': 3})
# or
default_data['item3'] = 3
Posted by: Guest on January-16-2021

Python Answers by Framework

Browse Popular Code Answers by Language