How do you insert an item into a dictionary (in python 3.7.2)?

CrazyVideoGamez jasonanyilian at gmail.com
Fri Jun 28 11:06:37 EDT 2019


How do you insert an item into a dictionary? For example, I make a dictionary called "dictionary".

dictionary = {1: 'value1', 2: 'value3'}

What if I wanted to add a value2 in the middle of value1 and value3?



More information about the Python-list mailing list