# Basic syntax:
dictionary['new_key']='new_value'# Example usage:
d ={'a':1,'b':5}# Define dictionary
d['c']=37# Add a new key to the dictionaryprint(d)-->{'a':1,'b':5,'c':37}
# welcome to softhunt.net# Creating an empty Dictionary
Dictionary ={}print("Empty Dictionary: ", Dictionary)# Adding elements one at a time
Dictionary[0]='Softhunt'
Dictionary[1]='.net'print("
Dictionary after adding 2 elements: ", Dictionary)# Adding set of values# to a single Key
Dictionary['Value_set']=2,3,4print("
Dictionary after adding 3 elements: ", Dictionary)# Updating existing Key's Value
Dictionary[2]='Greetings'print("
Updated key value: ", Dictionary)# Adding Nested Key value to Dictionary
Dictionary[3]={'Nested':{'i':'Hello','ii':'User'}}print("
Adding a Nested Key: ", Dictionary)
a_dictionary ={}#creates a blank dictionary#variables created outside of dictionary
name ="Geronimo"#this will become a key to access the value
age =34#This becomes the value assigned to the key
a_dictionary[name]= bid #this adds the key and the value
# plz suscribe to my youtube channel --># https://www.youtube.com/channel/UC-sfqidn2fKZslHWnm5qe-A#dictionary
programming ={"Bugs":"These are the places of code which dose not let your program run successfully","Functions":"This is a block in which you put a peice of code","Shell":"This is a place where the code is exicuted"}print(programming["Bugs"])print(programming["Shell"])#Adding items to dictionary#Firtly get the access to the dictionary
programming["Loops"]="This is a action of doing something repeatedly"print(programming["Loops"])