And in the classroom,
you use these programming quizzes to write Python and run
your code but instead of running your code online in the classroom,
you can run Python on your own computer by installing
Python and useful tools for your programming environment.
Since Python is a popular open-source programming language,
it’s free to download,
change and use and the fact that it’s already popular means
there are online instructions to help you get it
installed for most common operating systems.
Because it’s popular and open-source,
there’s a large global community working on developing Python.
For you, as a Python user,
that means there’ll be new versions coming out as Python is improved by the community.
You might find yourself needing to update Python from time to time especially if you’re
collaborating with other people as you write
Python programs that are compatible with the version they’re using.
Now, it’s time for you to install Python.
이전의 모든 수업에서,
우리는 이 상자를 사용하여 코드 편집기를 나타냅니다.
결과를 볼 수 있는 Python 코드와 출력 창을 작성했습니다.
이 프로그래밍 퀴즈를 사용하여 Python을 작성하고
코드를 교실에서 온라인으로 실행하는 대신
설치하여 자신의 컴퓨터에서 Python을 실행할 수 있습니다.
프로그래밍 환경을 위한 Python 및 유용한 도구.
파이썬은 인기 있는 오픈 소스 프로그래밍 언어이기 때문에,
무료로 다운로드할 수 있습니다.
변화와 활용 그리고 이미 대중화되었다는 사실을 의미합니다.
당신이 그것을 얻는 데 도움이되는 온라인 지침이 있습니다
가장 일반적인 운영 체제용으로 설치됩니다.
대중적이고 오픈 소스이기 때문에
Python 개발 작업을 하는 대규모 글로벌 커뮤니티가 있습니다.
이는 커뮤니티에서 Python을 개선함에 따라 새 버전이 나올 것임을 의미합니다.
특히 다음과 같은 경우 Python을 수시로 업데이트해야 할 수도 있습니다.
당신이 쓰는 동안 다른 사람들과 공동 작업
사용 중인 버전과 호환되는 Python 프로그램.
이제 Python을 설치할 차례입니다.
Before We Install Python:
1. Prepare to Use Command Line
To install Python and follow this lesson, you will need to use the command line. We will walk you through all the details, so don’t worry if you have never used it before! If you would like to learn or refresh on command lines, we strongly recommend going through this free Shell Workshop lesson, where you can set up and learn how to use Unix Shell commands.
** Note to Windows Users: Install Git Bash
As noted in the free Shell Workshop linked above, we recommend you install Git Bash here and use this as your terminal for this lesson. Please note that during installation you should select the checkbox Use Git and Optional Unix tools from the Windows Command Prompt. This will allow you to use Unix commands while in Windows. If you’d rather use PowerShell, those commands are also provided in this lesson. For more information on the different command shells, check out the Shell Workshop lesson linked above.
2. Is Python Already Installed On Your Computer?
In this course, we’re using the most recent major version of Python – Python 3. Although Python 2 is still being used in many places, it is no longer being updated. In order to keep up compatibility with future improvements to Python, we recommend using Python 3.
Mac OS X and Linux usually come with Python 2 already installed. We DO NOT recommend that you make any changes to this Python, since parts of the operating system are using Python. However, it shouldn’t do any harm to your system to install Python 3 separately, too.
Windows doesn’t usually come with Python included, but you can still check whether you have it installed before going ahead. So, first, check that you’ve not already got Python 3 installed.
Open up your Terminal or Command Line (this would be Git Bash on Windows).
In a new terminal or command prompt, type
$ python --version
You might get a response that the Python version installed is something like
Python 2.7.9. In that case, it would tell you that you have Python 2 installed, and you’ll want to follow the steps in the next couple of sections to update it to Python 3.
If instead the version number starts with a 3, then you already have Python 3 installed! Don’t install Python again!
Alternatively, you might see an error message – don’t worry about that for now, just try the steps in the next couple of sections.