- while 조건식 :
실행문count = 0 while count < 5: print(f"{count + 1}") count += 1
stop = 0 loop = True while loop: stop += 1 print(stop) if stop == 10: loop = False
print("- text 입력기(정지 : stop) -") text = '' while text != 'stop': text = input('>> ') print(text) print('- End -')