forked from hussien89aa/PythonTutorial
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDictionary.py
More file actions
20 lines (13 loc) · 455 Bytes
/
Dictionary.py
File metadata and controls
20 lines (13 loc) · 455 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
def main():
#Student={'Name':"hussein alrubaye",'Age':27,'Slary':232.5};
Student=dict(Name="hussein alrubaye",Age=27,Slary=232.5);
Student['Name']="Hussein Ahmed"
Student["Dept"]="software engineer"
print(Student,type(Student))
del Student["Dept"]
print(Student,type(Student))
print(Student['Name'])
print(Student['Age'])
Student.clear()
print(Student,type(Student))
if __name__ == '__main__':main()