Update u2/list_ops.py
This commit is contained in:
parent
ac962f5437
commit
4eb1bb79aa
@ -0,0 +1,14 @@
|
|||||||
|
def length(l):
|
||||||
|
count = 0
|
||||||
|
for c in range l:
|
||||||
|
count +=1
|
||||||
|
return count
|
||||||
|
|
||||||
|
def append(list1, list2):
|
||||||
|
list = []
|
||||||
|
for item in list1:
|
||||||
|
list += [item]
|
||||||
|
for item in list2:
|
||||||
|
list += [item]
|
||||||
|
return list
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user