- 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.
推薦閱讀
- Mastering Selenium WebDriver
- 深入理解Django:框架內幕與實現原理
- Python自動化運維快速入門
- Network Automation Cookbook
- RTC程序設計:實時音視頻權威指南
- 實戰低代碼
- Hands-On Natural Language Processing with Python
- HTML5從入門到精通 (第2版)
- Python期貨量化交易實戰
- ASP.NET求職寶典
- Android應用開發實戰(第2版)
- C語言程序設計教程
- Learning D3.js 5 Mapping(Second Edition)
- Python無監督學習
- 和孩子一起學編程:用Scratch玩Minecraft我的世界