-
Notifications
You must be signed in to change notification settings - Fork 1
/
section_15.py
43 lines (28 loc) · 1007 Bytes
/
section_15.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Dan_dict = {"f_name": "Dan", "l_name": "Banas", "address": "123 Main St"}
# print("My Name :", Dan_dict["f_name"])
# Dan_dict["address"] = "9712 32 AVE"
# Dan_dict['city'] = "East Elmhurst"
# print("Is there a city :", "city" in Dan_dict)
# print(Dan_dict.values())
# print(Dan_dict.keys())
# for k, v in Dan_dict.items():
# print(k,v)
# print(Dan_dict.get("m_name", "Not Here"))
# del Dan_dict["f_name"]
# for i in Dan_dict:
# print(i)
# Dan_dict.clear()
# employees = []
# f_name,l_name = input("Enter Employee Name : ").split()
# employees.append({"f_name": f_name, "l_name": l_name})
# customers = []
# while True:
# create_entry = input("Enter Customer (Yes/No): ")
# create_entry = create_entry[0].lower()
# if create_entry == "n":
# break
# else:
# f_name, l_name = input("Enter Customer name : ").split()
# customers.append({'f_name': f_name, 'l_name': l_name})
# for cust in customers:
# print(cust["f_name"], cust["l_name"])