- Python Projects for Kids
- Jessica Ingrassellino
- 119字
- 2021-07-09 19:35:13
Chapter 3. Calculate This!
In the previous chapter, you learned about the uses of variables, different data types, and functions. You created your own function and learned how to get basic information from a user with the raw_input()
function. Using these building blocks, you can begin to design basic programs.
The first program we make will be a five-function calculator that calculates two numbers as input. The calculator will help us learn to understand the mathematical functions that are a part of Python, which will be useful for our game at the end of the book. In addition to this, this calculator will form the foundation for a more complex calculator in Chapter 5, Loops and Logic.
推薦閱讀
- Java語言程序設(shè)計(jì)
- Spring Cloud Alibaba核心技術(shù)與實(shí)戰(zhàn)案例
- Java開發(fā)入行真功夫
- Mastering Julia
- PLC編程及應(yīng)用實(shí)戰(zhàn)
- Python Web數(shù)據(jù)分析可視化:基于Django框架的開發(fā)實(shí)戰(zhàn)
- Developing SSRS Reports for Dynamics AX
- Android Development Tools for Eclipse
- 區(qū)塊鏈架構(gòu)之美:從比特幣、以太坊、超級(jí)賬本看區(qū)塊鏈架構(gòu)設(shè)計(jì)
- Flink技術(shù)內(nèi)幕:架構(gòu)設(shè)計(jì)與實(shí)現(xiàn)原理
- Practical Predictive Analytics
- C# 7.1 and .NET Core 2.0:Modern Cross-Platform Development(Third Edition)
- H5匠人手冊(cè):霸屏H5實(shí)戰(zhàn)解密
- Manage Your SAP Projects with SAP Activate
- Game Programming using Qt 5 Beginner's Guide