10/26
>>>
# Here's some new strange stuff, remember type it exactly.
days = " Mon, Tue, Wed, Thu, Fri, Sat, Sun" # day의 정의
months = "Jan\nFeb\nMar\nApr\nMay\nJun\nJul\nAug" # months의 정의, '\n'은 month목록을 새줄에서 시작
print "Here are the days: ", days
print "Here are the months: ", months
print"""
There's something going on here.
With the three double-quotes.
We'll be able to type as much as we like.
Even 4 lines if we want, or 5, or 6.
"""
반응형
'Learn Hard Way the Python' 카테고리의 다른 글
Asking Question (0) | 2016.11.01 |
---|---|
What was that (0) | 2016.10.31 |
# Printing, Printing (0) | 2016.10.24 |
# More printing (0) | 2016.10.23 |
# Strings and Texts (0) | 2016.10.21 |