본문 바로가기
Python

python while

by NaHyungMin 2019. 8. 27.

numbers = [12345];

whileCount = 0;

 

while whileCount < len(numbers):

    whileCount = whileCount + 1;

    print("%d번째 시도중 ..." %whileCount);

 

    if(whileCount == len(numbers)):

        print(("%d번째 시도 완료" %whileCount));

 

'Python' 카테고리의 다른 글

python 함수2  (0) 2019.09.02
python 함수1  (0) 2019.08.27
python for활용  (0) 2019.08.27
python for  (0) 2019.08.27
python if문  (0) 2019.08.27