# create dict by two lists list1 = [1, 2, 3] list2 = [4, 5, 6] dict = {'list1': list1, 'list2': list2} # delete key in dict del(dict[key]) # access nested dicts dict1[key1][key2] # update existing keys dict1[key1] = 'string'
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter