You should use a for loop when you know how many times the loop should run. If you want the loop to breat based on a condition other than the number of times it runs, you should use a while loop. -from Khanacademy.org - 예를 들면, 5번 안에 랜덤 숫자 맞추기의 경우 5번이라는 기한이 정해져 있으므로 for loop을 쓰면 되고, 몇 번을 시도하는 것과 관계없이 숫자 3이 나오면 승리하는 게임을 만들 경우 while loop을 쓰면 된다. for loop : 정해진 condition이 허락하는 안에서만 실행된다 (i가 10에 도달하면..