실제로 어떻게 쓰이나요?
아래 예문들을 통해 각 단어가 어떤 상황에서 어떻게 쓰일 수 있는지 감을 잡아보세요!
iteration
예문
The program uses iteration to calculate the sum of all the numbers in the list. [iteration: noun]
프로그램은 반복을 사용하여 목록에 있는 모든 숫자의 합을 계산합니다. [반복: 명사]
예문
We need to iterate through each element in the array to find the maximum value. [iterate: verb]
최대값을 찾기 위해 배열의 각 요소를 반복해야 합니다. [반복: 동사]
loop
예문
The program uses a loop to print out all the even numbers in the list. [loop: noun]
프로그램은 루프를 사용하여 목록의 모든 짝수를 출력합니다. [루프: 명사]
예문
We need to loop through the array to find the index of the target element. [loop: verb]
대상 요소의 인덱스를 찾기 위해 배열을 반복해야 합니다. [루프 : 동사]
추가로 알아두면 좋아요
어떤 단어가 더 많이 쓰이나요?
Loop는 프로그래밍 컨텍스트에서 iteration보다 더 일반적으로 사용됩니다. 그러나 iteration는 수학이나 비즈니스와 같이 프로그래밍 외부에서 사용할 수 있는 보다 일반적인 용어입니다.
어떤 단어가 더 포멀한가요?
iteration와 loop은 모두 기술적 맥락, 특히 프로그래밍 및 컴퓨터 과학에서 사용되는 공식 용어입니다.