[Programmers] 내적
Python
def solution(a, b):
answer = 0
for i in range(len(a)):
answer += a[i] * b[i]
return answer
def solution(a, b):
answer = 0
for i in range(len(a)):
answer += a[i] * b[i]
return answer
댓글남기기