Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Dictionary Add Entry

hh = {"john":3, "mary":4}

# add a entry
hh["vicky"] = 99
print(hh)
# {'john': 3, 'mary': 4, 'vicky': 99}
Source by xahlee.info #
 
PREVIOUS NEXT
Tagged: #Dictionary #Add #Entry
ADD COMMENT
Topic
Name
2+8 =