Program - Addition of two vector


Topic: Program - Addition of two vector

Solution

v1 = [1,2,3]
v2 = [1,2,3]
s1 = [0,0,0]
for i in range(len(v1)):
  s1[i] = v1[i] + v2[i]
print(f"New Vector:{s1}")



List all Python Programs