Skip to content

Commit 655d3f7

Browse files
committed
done with excercises number 10
1 parent c76da86 commit 655d3f7

File tree

4 files changed

+18
-0
lines changed
  • .learn/resets
    • 10.1-And_One_and_a_Two_and_a_Three
    • 11-Nested_list
  • exercises

4 files changed

+18
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
contact = {
2+
"fullname": "Jane Doe",
3+
"phone": "321-321-4321",
4+
"email": "[email protected]"
5+
}
6+
7+
# Your code here
8+

.learn/resets/11-Nested_list/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coordinates_list = [[33.747252, -112.633853], [-33.867886, -63.987], [41.303921, -81.901693], [-33.350534, -71.653268]]
2+
3+
# Your code here

exercises/10-Find_avg/app.py

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
my_list = [2323,4344,2325,324413,21234,24531,2123,42234,544,456,345,42,5445,23,5656,423]
22

33
# Your code here
4+
sum = 0
5+
for num in my_list:
6+
sum += num
7+
avg = sum/len(my_list)
8+
print(avg)

exercises/10.1-And_One_and_a_Two_and_a_Three/app.py

+2
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@
66

77
# Your code here
88

9+
for key in contact.keys():
10+
print(f"{key}: {contact[key]}")

0 commit comments

Comments
 (0)