forked from AmI-2018/python-lab2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEx4.py
More file actions
22 lines (19 loc) · 678 Bytes
/
Ex4.py
File metadata and controls
22 lines (19 loc) · 678 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
task1 = {"todo": "call John for AmI project organization", "urgent": True}
task2 = {"todo": "buy a new mouse", "urgent": True}
task3 = {"todo": "find a present for Angelina’s birthday", "urgent": False}
task4 = {"todo": "organize mega party (last week of April)", "urgent": False}
task5 = {"todo": "book summer holidays", "urgent": False}
task6 = {"todo": "whatsapp Mary for a coffee", "urgent": False}
Dict = {}
Dict["task1"] = task1
Dict["task2"] = task2
Dict["task3"] = task3
Dict["task4"] = task4
Dict["task5"] = task5
Dict["task6"] = task6
NewDict = {}
for x in Dict:
if Dict[x]["urgent"] == True:
NewDict[x]=Dict[x]
for x in NewDict:
print(NewDict[x])