VS Code에서 python 코딩 테스트 연습 중에 SyntaxError가 나서 찾아보니
맥북에 깔려있던 2.7 버전을 그대로 사용 중이라 나는 에러였다.
정확히 말하면 업그레이드가 아니고 3.8 버전 추가 설치이다.
2.7을 업그레이드하면 기존 맥북 설정에 영향을 줄 수도 있을 것 같아서
2.7은 놔두고 3.8을 설치했다.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew doctor
$ brew install python3
$ python -V
Python 2.7.16
$ python3 -V
Python 3.8.2
이제 SyntaxError가 나지 않는다!