概要
Pythonで「Pythonを対話モードで利用する」の動作を確認してみました。以下のページを参考にしました。
実装
以下のコマンドを実行しました。
$ python3
Python 3.10.12 (main, Jun 11 2023, 05:26:28) [GCC 11.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> 10*5-3
47
>>> num = 8
>>> price = 500
>>> num * price
4000
>>> help('if')
>>>
まとめ
何かの役に立てばと。