forked from Kyle-ND/Code-Crunch-Marathon
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpractice.py
More file actions
62 lines (44 loc) · 1.08 KB
/
practice.py
File metadata and controls
62 lines (44 loc) · 1.08 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# this is a practice file where you can play around with the code and test your functions or try new things
#do not change the code in this file just edit on blank lines
# students = {
# "jason": 90,
# "james": 80,
# "jane": 70,
# "jill": 60,
# "jerry": 50
# }
# weather = {
# "Monday": 12,
# "Tuesday": 14,
# "Wednesday": 15,
# "Thursday": 14,
# "Friday": 21,
# "Saturday": 22,
# "Sunday": 24,
# }
# student_names = ["jason", "james", "jane", "jill", "jerry"]
# weather = {
# "Monday": 12,
# "Tuesday": 14,
# "Wednesday": 15,
# "Thursday": 14,
# "Friday": 21,
# "Saturday": 22,
# "Sunday": 24,
# }
contact_book = {
"key":"value",
"Anele":607898787,
"Khosi":78965443221
}
# for x in contact_book:
# print(x)
# for value in contact_book.values():
# print(value)
# for key,value in contact_book.items():
# if key == "Anele":
# contact_book[key] = 1
# print(contact_book)
# new_contacts = {"sihle":99886576,"kyle":98876554546}
# contact_book.update(new_contacts)
# print(contact_book)