# Dictionary
dict1 = {1:'A', 2:'B', 3:'C'}
# List of the keys
keysList = list(dict1.keys())
print(keysList)
# List of the values
valuesList = list(dict1.values())
print(valuesList)
#!/usr/bin/python3
a = {"a":"b","c":"d"}
a_values = list(a.values())
print(a_values)
# output: ["b", "d"]
hh = {"a":3, "b":4, "c":5}
print(hh.keys())
# dict_keys(['a', 'b', 'c'])
print(list(hh.keys()))
# ['a', 'b', 'c']
#python 3
for k,v in dict.items():
print(k, v)
a = {1:2 , 2:3 , 3:4}
values = a.values()
#dictionariies
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"])
for eliment in programming:
print(eliments)