- Python Programming with Raspberry Pi
- Sai Yamanoor Srihari Yamanoor
- 145字
- 2021-07-02 23:48:42
Launching the Python interpreter via the Linux Terminal
It is also possible to use the Python interpreter via the Linux Terminal. Programmers mostly use this to test their code or refer to the Python documentation tool, pydoc. This approach is convenient if the readers plan to use a text editor other than IDLE:
- Launch the Raspberry Pi's command-line terminal from the desktop toolbar.

Launching the command-line terminal
- Type the command,python3 and press Enter. This should launch Python 3.x on the terminal.
- Now, try running the same piece of code discussed in the previous section:
print("I am excited to learn Python with the Raspberry Pi Zero")
This would give the following screenshot as the result:

The result should be similar to that of the previous two sections
The Python interpreter in the Linux Terminal may be closed by typing exit() and pressing the return key
推薦閱讀
- 現(xiàn)代測控系統(tǒng)典型應(yīng)用實例
- Microsoft Power BI Quick Start Guide
- Visual FoxPro 6.0數(shù)據(jù)庫與程序設(shè)計
- 腦動力:PHP函數(shù)速查效率手冊
- 大數(shù)據(jù)時代
- Extending Ansible
- 啊哈C!思考快你一步
- 會聲會影X4中文版從入門到精通
- MATLAB-Simulink系統(tǒng)仿真超級學(xué)習(xí)手冊
- 未來學(xué)徒:讀懂人工智能飛馳時代
- Hands-On SAS for Data Analysis
- Apache Spark Quick Start Guide
- 大型機系統(tǒng)應(yīng)用基礎(chǔ)
- 軟件質(zhì)量管理實踐
- Cisco UCS Cookbook