💡 for, while : 조건에 따라 반복 작업을 수행해야 할 때 사용하는 statement(반복문, iteration)

Source : https://www.codingem.com/flowchart-loop/
for, while statement를 통해 다룬다.# while statement syntax example
while condition:
<statement>
<statement>
...
while statement는 조건이 만족하는 동안 반복적으로 statement를 수행한다.while True: 구문을 통해 무한루프(infinite loop)를 만들 수 있다.# for statement syntax example
for iterator in iterable_object:
<statement>
<statement>
...
for statement는 횟수에 따른 반복 수행을 한다.iterator에 대한 이해는 필수다!: 사용을 주의해야 한다.decomposition