- 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.
推薦閱讀
- C#高級編程(第10版) C# 6 & .NET Core 1.0 (.NET開發經典名著)
- Cocos2D-X權威指南(第2版)
- iOS 9 Game Development Essentials
- PyTorch Artificial Intelligence Fundamentals
- Python爬蟲開發與項目實戰
- 鋒利的SQL(第2版)
- C語言實驗指導及習題解析
- 深入淺出Serverless:技術原理與應用實踐
- 劍指Java:核心原理與應用實踐
- SQL Server從入門到精通(第3版)
- Building RESTful Python Web Services
- 輕松上手2D游戲開發:Unity入門
- 小程序,巧應用:微信小程序開發實戰(第2版)
- 編程可以很簡單
- Hack與HHVM權威指南