Jupyter Notebookを使ってPythonの基本文法をまとめた

Pythonの基本文法 3+3 6 3-2 4*5 6/2 7%2 #最後に実行された行の返り値のみ 1 type(1) int type(1.0) float type(3.14) float type('string') str 'hello'[2] 'l' 'hello'[1:3] 'el' 'hello{}'.format('world') 'helloworld' print('{one}{two}'.format(one='hello', two='world')) helloworld List list_out = [1,2,'thre…