![](https://blog.kakaocdn.net/dn/Hdwfp/btrqtUoqwvI/loE2Nc6TDpeBCzk4lRiul1/img.png)
코드
![](https://blog.kakaocdn.net/dn/pN6RT/btrqvAir3pH/orT0QtmRnypCOom0LllB3K/img.png)
실행화면 1
![](https://blog.kakaocdn.net/dn/b6iR6d/btrqAbILUCR/DyfUFgwyi8hXVoFhV31FH1/img.png)
실행화면 2
변수이름 -> refactor -> 코드 내 모든 변수이름 변경가능
while 문에 else 사용가능
'PYTHON' 카테고리의 다른 글
[13] Python - For Loops (0) | 2022.01.12 |
---|---|
[12] Python - Car game (0) | 2022.01.12 |
[10] Python - While Loops (0) | 2022.01.12 |
[9] Python - Weight Converter Program (0) | 2022.01.12 |
[8] Python - Logical Operators (0) | 2022.01.12 |