!python -c "import this"
The Zen of Python, by Tim Peters Beautiful is better than ugly. Explicit is better than implicit. Simple is better than complex. Complex is better than complicated. Flat is better than nested. Sparse is better than dense. Readability counts. Special cases aren't special enough to break the rules. Although practicality beats purity. Errors should never pass silently. Unless explicitly silenced. In the face of ambiguity, refuse the temptation to guess. There should be one-- and preferably only one --obvious way to do it. Although that way may not be obvious at first unless you're Dutch. Now is better than never. Although never is often better than *right* now. If the implementation is hard to explain, it's a bad idea. If the implementation is easy to explain, it may be a good idea. Namespaces are one honking great idea -- let's do more of those!
파이썬(Python)은 1990년 암스테르담의 귀도 반 로섬이 개발한 인터프리터 언어이다.
크리스마스때 만들었다나 뭐라나... 위화감이 느껴지는 대목이다. ^^
개인적으로 오래 전부터 접할 수 있는 기회가 있었지만, 세미콜론(;)이나 중괄호({})가 없다는 것부터가 진입장벽(?)이었다. ㅎㅎ
다시 관심을 갖게된 것은 웹 프레임워크인 Django(장고)나, 최근 데이터 분석에 널리 쓰여서이다.
가장 유명한 MOOC 중 하나인 edX에서 사용하는 오픈소스 LMS(Learning Management System) 플랫폼이 장고 기반인 OpenedX이다.
1+2
3
3 / 2.4
1.25
3 * 9
27
a = 1
b = 2
a + b
3
a = "Python"
print(a)
Python
a = 2 + 3j
b = 3
a * b
(6+9j)
a = 3
if a > 1:
print("a is greater than 1")
a is greater than 1
for a in [1, 2, 3]:
print(a)
1 2 3
i = 0
while i < 3:
i = i + 1
print(i)
1 2 3
def sum(a, b):
return a+b
print(sum(3, 4))
7