프로그래머스 내적(파이썬) for문 쓰는 기초문제 def solution(a, b): answer = 0 for i in range(len(a)): answer+=a[i]*b[i] #내적값 return answer 프로그래머스 풀이 2022.02.11