title: '5번 산책'
date: '2024-05-19'
tags: ["파이썬", "산책", "python", "5번", "프로그래머스"]
summary: '5번 산책'
---

![이미지](/images/self_dev/programmers/프로그래머스-PCCE-기출문제-5번-산책-html_20240519/img.png)

* * *

### **코드 입력**
```python
![이미지](/images/self_dev/programmers/프로그래머스-PCCE-기출문제-5번-산책-html_20240519/img_1.png)

워낙 간단한 문제기 때문에 설명은 따로 첨부하지 않는다.

특정 변수에 1을 더하거나 뺄 때, **north = north - 1** 로 나타낼 수도 있지만,  
중복으로 기재하지 않고 빠르게 적으며 간단하게 표기할 수 있게 파이썬에서는  
상위 이미지의 형태인 **north -= 1** 의 형식을 지원한다.

* * *

> **🔗 [프로그래머스](https://school.programmers.co.kr/learn/courses/30/lessons/250129)**