chapter 2: Getting Your Own Copy of Python

이 장에서는 다음 내용을 배우게 됩니다.

▶ Obtaining a copy of Python for your system
▶ Performing the Python installation
▶ Finding and using Python on your system
▶ Ensuring your installation works as planned

2.1 Downloading the Version You Need

파이썬은 다음과 같은 OS 플랫폼을 지원합니다.

✓ Advanced IBM Unix (AIX)
✓ Amiga Research OS (AROS)
✓ Application System 400 (AS/400)
✓ BeOS
✓ Hewlett-Packard Unix (HP-UX)
✓ Linux
✓ Mac OS X (comes pre-installed with the OS)
✓ Microsoft Disk Operating System (MS-DOS)
✓ MorphOS
✓ Operating System 2 (OS/2)
✓ Operating System 390 (OS/390) and z/OS
✓ PalmOS
✓ Playstation
✓ Psion
✓ QNX
✓ RISC OS (originally Acorn)
✓ Series 60
✓ Solaris
✓ Virtual Memory System (VMS)
✓ Windows 32-bit (XP and later)
✓ Windows 64-bit
✓ Windows CE/Pocket PC

주로 많이 교육용으로 쓰이는 OS는 Windows 10 내지 Linux가 될것이다. 다음 사이트에 가서 해당 OS에 맞는 Python 프로그램을 받아야 한다.

http://www.python.org/download/releases

windows 인스톨 버젼은 Default로 인스톨해도 되지만 특정 Directory에 인스톨 하고 해당 디텍토리를 윈도우 설정에서 추가하는것이 좋다.

2.2 Installing Python

인스톨 과정은 생략한다.

2.3 Accessing Python on Your Machine

윈도우에서 Python을 실행하려면 Python IDLE를 실행하면 된다. 또는 윈도우에서 실행화일 패스를 잡고 윈도우 터미널에서 >Python 이라고 실행해도 된다.

2.4 Testing Your Installation

인스톨이 잘 되었는지 확인해 보자. 터미널에서 다음을 실행해 보자.

print("This is my first Python program.”)

Python IDLE에서 표시되는 색깔은 다음을 표현한다.

✓ Purple: Indicates that you have typed a command
✓ Green: Specifies the content sent to a command
✓ Blue: Shows the output from a command
✓ Black: Defines non-command entries

터미널에서 다음을 실행해 보자.

3+4

Next time I will upate contents

Algorithms Train

01_palindrome_chain_length.py

02-LetterChanges.py

02_enum.py

02_lett_changes.py

03-LongestWord.py

03_longest_word.py

05-SimpleAdding.py

05_simple_adding.py

06-LetterCapitalize.py

06_letter_capitalize.py

07-SimpleSymbols.py

07.number_n_nm.py

07_SimpleSymbols2.py

07_simple_symbols.py

08-CheckNums.py

08.reverse_number.py

08.reverse_number2.py

08.reverse_number3.py

08_check_numbers.py

09-TimeConvert.py

09.positvenegative.py

09_time_convert.py

10.takemark.py