$ vim hello.py
print ("こんにちはπ村")
$ python hello.py こんにちはπ村 $ _
改行で文は区切るが、セミコロンで区切る事もできる。
str = "こんにちは";str2 = "π村" print (str+str2)
$ python hello.py こんにちはπ村 $ _
print (1+2+3+4+5+6+7+8+9+10) print (1+2+3+4+5+6+ \ 7+8+9+10)
$ python hello2.py 55 55 $
# coding: utf_8 # これはコメントだよ。 str = "こんにちは";str2 = "π村" print (str+str2) i = 0 n = 0 while i < 10: i = i + 1 n = n + i print (n)
$ python hello.py こんにちはπ村 55 $