2014年7月23日水曜日

開発環境

Learning Python (Mark Lutz (著)、Oreilly & Associates Inc)のPART Ⅱ.(Types and Operations)、Chapter 5.(Numeric Types)、Test Your Knowledge: Quiz 1, 2, 3.を解いてみる。

その他参考書籍

Test Your Knowledge: Quiz 1, 2, 3.

入出力結果(Terminal, IPython)

$ ipython
Python 3.4.1 (default, May 21 2014, 01:39:38) 
Type "copyright", "credits" or "license" for more information.

IPython 2.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: 2 * (3 + 4) # 14
Out[1]: 14

In [2]: 2 * (3 + 4) == 14
Out[2]: True

In [3]: 2 * 3 + 4 # 10
Out[3]: 10

In [4]: 2 * 3 + 4 == 10
Out[4]: True

In [5]: 2 + 3 * 4 # 14
Out[5]: 14

In [6]: 2 + 3 * 4 == 14
Out[6]: True

In [7]: quit()
$

0 コメント:

コメントを投稿