- Python Programming with Raspberry Pi
- Sai Yamanoor Srihari Yamanoor
- 167字
- 2021-07-02 23:48:42
The print() function
In our first helloworld example, we discussed printing something on the screen. We used the print() function to obtain our result. In Python, a function is a code block that executes a set of defined tasks. The print() function is a part of Python's standard library that prints any combination of alphanumeric characters that is passed as an argument between the quotes. The print() function is used to print information to the screen. It is especially helpful while trying to debug the code. In this example, the print() function was used to print a message on the screen.
In this chapter, the function print() executed the string I am excited to learn Python programming with the Raspberry Pi Zero (we will discuss strings in the later section of this book). It is also possible to write custom function to execute a repetitive task required by the user.
Similarly, the exit() function executes the predefined task of exiting the Python interpreter at the user's call.
- 基于LabWindows/CVI的虛擬儀器設計與應用
- 模型制作
- Matplotlib 3.0 Cookbook
- Zabbix Network Monitoring(Second Edition)
- 自主研拋機器人技術
- 21天學通Java Web開發
- CentOS 8 Essentials
- FPGA/CPLD應用技術(Verilog語言版)
- Linux Shell編程從初學到精通
- 網絡服務器搭建與管理
- Microsoft 365 Mobility and Security:Exam Guide MS-101
- 探索中國物聯網之路
- Microsoft Office 365:Exchange Online Implementation and Migration(Second Edition)
- Architectural Patterns
- 單片機C語言編程實踐