list_ops
This commit is contained in:
parent
6385c57a7a
commit
5123640fd5
17
u2/list_ops_test.py
Normal file
17
u2/list_ops_test.py
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
def append(list1, list2):
|
||||||
|
result = []
|
||||||
|
|
||||||
|
for element in list1:
|
||||||
|
result.append(element)
|
||||||
|
for element in list2:
|
||||||
|
result.append(element)
|
||||||
|
return result
|
||||||
|
|
||||||
|
def concat(lists):
|
||||||
|
result = []
|
||||||
|
|
||||||
|
for current_list in lists:
|
||||||
|
for element in current_list:
|
||||||
|
result.append(element)
|
||||||
|
return result
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user