Answers for "how insert element to key in dictionary python"

4

how to add elements in a dictionary in python

#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"])
Posted by: Guest on August-07-2021

Code answers related to "how insert element to key in dictionary python"

Python Answers by Framework

Browse Popular Code Answers by Language