first commit

This commit is contained in:
=
2024-02-07 14:24:48 +01:00
commit ff58b527de
7 changed files with 374 additions and 0 deletions

8
tuple_addition.py Normal file
View File

@@ -0,0 +1,8 @@
def tuple_add(t1, t2):
n = len(t1)
if n != len(t2):
raise TypeError()
ret = []
for i in range(n):
ret.append(t1[i] + t2[i])
return tuple(ret)