Nov-28-2016, 09:23 PM
"""
Create a function called
- Tuple, T1, consisting of multiple float numbers
- Tuple, T2, of the same length and type as T1
The function must:
1. Return a tuple, T3 that:
1.1. Has the same number of elements as T1 and T2
1.2. Each element in T3 is equal to the sum of the corresponding element in
T1 and T2
2. The function documentation should read:
Return a tuple of the vector sum of numeric sequences
"""
Create a function called
vector_sum
, taking two arguments:- Tuple, T1, consisting of multiple float numbers
- Tuple, T2, of the same length and type as T1
The function must:
1. Return a tuple, T3 that:
1.1. Has the same number of elements as T1 and T2
1.2. Each element in T3 is equal to the sum of the corresponding element in
T1 and T2
2. The function documentation should read:
Return a tuple of the vector sum of numeric sequences
"""