官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 桐梓县| 宁津县| 新营市| 农安县| 大丰市| 抚远县| 景东| 曲水县| 青岛市| 七台河市| 磐石市| 龙胜| 沙坪坝区| 周宁县| 昌吉市| 吉隆县| 长宁区| 麻江县| 五寨县| 自治县| 汽车| 梁平县| 屏东县| 响水县| 无为县| 巴南区| 鄯善县| 陈巴尔虎旗| 九江县| 昆明市| 五台县| 营口市| 嘉兴市| 上饶市| 方山县| 江川县| 淅川县| 成都市| 平度市| 通河县| 顺平县|