Skip to content

Commit c76da86

Browse files
committed
excercises 9 done
1 parent 2dc108c commit c76da86

File tree

4 files changed

+20
-0
lines changed
  • .learn/resets
  • exercises

4 files changed

+20
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
my_list = [3344,34334,454543,342534,4563456,3445,23455,234,262,2335,43323,4356,345,4545,452,345,434,36,345,4334,5454,345,4352,23,365,345,47,63,425,6578759,768,834,754,35,32,445,453456,56,7536867,3884526,4234,35353245,53244523,566785,7547,743,4324,523472634,26665,63432,54645,32,453625,7568,5669576,754,64356,542644,35,243,371,3251,351223,13231243,734,856,56,53,234342,56,545343]
2+
3+
# Your code here

.learn/resets/10-Find_avg/app.py

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
my_list = [2323,4344,2325,324413,21234,24531,2123,42234,544,456,345,42,5445,23,5656,423]
2+
3+
# Your code here
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
my_list = [43,23,6,87,43,1,4,6,3,67,8,3445,3,7,5435,63,346,3,456,734,6,34]
22

33
# Your code here
4+
def max_integer(list):
5+
max_num = 0
6+
for num in list:
7+
if num > max_num:
8+
max_num = num
9+
return max_num
10+
11+
print(max_integer(my_list))
+6
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
my_list = [3344,34334,454543,342534,4563456,3445,23455,234,262,2335,43323,4356,345,4545,452,345,434,36,345,4334,5454,345,4352,23,365,345,47,63,425,6578759,768,834,754,35,32,445,453456,56,7536867,3884526,4234,35353245,53244523,566785,7547,743,4324,523472634,26665,63432,54645,32,453625,7568,5669576,754,64356,542644,35,243,371,3251,351223,13231243,734,856,56,53,234342,56,545343]
22

33
# Your code here
4+
min_num = my_list[0]
5+
for num in my_list:
6+
if num < min_num:
7+
min_num = num
8+
9+
print (min_num)

0 commit comments

Comments
 (0)