Skip to content

Commit b2ed15c

Browse files
committed
TR updates, first round
1 parent 2efff18 commit b2ed15c

2 files changed

Lines changed: 7 additions & 7 deletions

File tree

python-list/chunks.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
def split_list(a_list, chunk_size):
1+
def split_list(list_object, chunk_size):
22
chunks = []
3-
for start in range(0, len(a_list), chunk_size):
3+
for start in range(0, len(list_object), chunk_size):
44
stop = start + chunk_size
5-
chunks.append(a_list[start:stop])
5+
chunks.append(list_object[start:stop])
66
return chunks

python-list/repeated.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
def get_unique_items(a_list):
1+
def get_unique_items(list_object):
22
result = []
3-
for item in a_list:
3+
for item in list_object:
44
if item not in result:
55
result.append(item)
66
return result
@@ -9,9 +9,9 @@ def get_unique_items(a_list):
99
print(get_unique_items([2, 4, 5, 2, 3, 5]))
1010

1111

12-
def get_unique_items_tail(a_list):
12+
def get_unique_items_tail(list_object):
1313
result = []
14-
for item in reversed(a_list):
14+
for item in reversed(list_object):
1515
if item not in result:
1616
result.insert(0, item)
1717
return result

0 commit comments

Comments
 (0)