Python
귀도반 로섬(Guido van Rossum)이 발표한 고급 프로그래밍 언어로, 플랫폼이 독립적이며 인터프리터식, 객체지향적, 동적 타이핑 대화형 언어이다.

Ubuntu 16.04 Python
Ubuntu 16.04 는 default로 Python(Python 2.7.12, Python 3.5.2)이 설치되어 있다.
IDLE 실행을 통해 버전을 확인할 수 있다. 또는 --version 옵션
$ python
$ python3


Python Install
Python을 설치하기 위해서 다음의 명령어를 이용한다.
$ sudo apt-get install python2.X (X 버전)
$ sudo apt-get install python2.7

$ sudo apt-get install python 3.X
$ sudo apt-get install python 3.5

Python 실행
$ python
>>> print “Hello World! Python”
>>> exit()
$ python3
>>> print(“Hello World! Python”)
>>> exit()

Python 코딩
$ vi test.py
소스 코드
def main():
print ‘Hello World! Python’
if __name__ == ‘__main__’:
main()

$ python test.py

$ vi test3.py
소스코드
def main():
print(‘Hello World! Python’)
if __name__ == ‘__main__’:
main()

$ python3 test3.py
