Skip to content

Commit e6c1d1d

Browse files
author
irsol
committed
Updated files.
1 parent a1fd87f commit e6c1d1d

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

count_unique_letter.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
2-
31
# 1
2+
43
def check_duplicates(text):
54
""" Checks if text contains duplicates.
65

do_four.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ def do_four(func, arg):
1717
do_twice(func, arg)
1818
do_twice(func, arg)
1919

20+
2021
do_twice(print_twice, 'spam')
2122
print('')
2223

find_elements.py

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#This function find elements that bigger then 4 in my_list[]
1+
# This function find elements that bigger then 4 in my_list[]
22

33
'''
44
def find_elements(lst, value):
@@ -16,7 +16,7 @@ def find_elements(lst, value):
1616

1717
# Find elements <= 22
1818

19-
'''
19+
2020
def find_elements(lst, value):
2121
new_list = []
2222
for element in lst:
@@ -27,10 +27,10 @@ def find_elements(lst, value):
2727
my_list = [22, 22.4, 21.9, 2, 1, 0.5]
2828

2929
print(find_elements(my_list, 22))
30-
'''
3130

32-
#Here use extend, extend takes 2 lists
33-
#and appends all of the elements
31+
32+
# Here use extend, extend takes 2 lists
33+
# and appends all of the elements
3434

3535

3636
def find_elements(lst, value):
@@ -42,7 +42,8 @@ def find_elements(lst, value):
4242
new_list.sort()
4343
return new_list
4444

45+
4546
my_list = [2, 3, 4, 6, 122, 3, 0.3]
4647
my_second_list = [3, 4, 9, 0, 333]
4748
my_list.extend(my_second_list)
48-
print(find_elements(my_list, 7))
49+
print(find_elements(my_list, 7))

0 commit comments

Comments
 (0)