Python - Dictionary
Python - Dictionary
Python
Programming
Language
Learning Outcome
• It is ordered (in version 3.7 onwards), changeable and does not allow duplicates
values.
• Written in curly brackets.
• Have data with key:value pairs.
Sample
Key Value
sampleDict[“Occupation”] = “Lecturer”
print(z) #AFTER the changes
Change the Value
• Display your data such as name, course etc. using Dictionary data type and update
any of the data.