- 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.
推薦閱讀
- 大話PLC(輕松動(dòng)漫版)
- 國(guó)際大學(xué)生程序設(shè)計(jì)競(jìng)賽中山大學(xué)內(nèi)部選拔真題解(二)
- 騰訊iOS測(cè)試實(shí)踐
- Getting Started with PowerShell
- Visual Basic程序設(shè)計(jì)教程
- Blender 3D Incredible Machines
- 你不知道的JavaScript(中卷)
- 青少年P(guān)ython編程入門
- Getting Started with Gulp
- Mastering Web Application Development with AngularJS
- 鴻蒙OS應(yīng)用編程實(shí)戰(zhàn)
- PHP 8從入門到精通(視頻教學(xué)版)
- Mastering SciPy
- C++17 By Example
- 啊哈C語(yǔ)言!:邏輯的挑戰(zhàn)(修訂版)