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

  • Python Projects for Kids
  • Jessica Ingrassellino
  • 133字
  • 2021-07-09 19:35:13

Summary

In this chapter, we learned how to store information in variables so that a computer could remember it later. We learned how to use variables to make a function that could add two preprogrammed numbers together. Then, things got interesting when we learned how to make the computer ask questions and remember the user's answers! Using raw_input(), we learned how to store answers as variables to use later in the name() function that we built together. We started saving our work in .py files so that we could run and rerun our files in our terminal/command prompt without having to retype the files all the time.

In the next chapter, you will build a four-function calculator to run in the command line using all of the skills you learned in this chapter!

主站蜘蛛池模板: 临朐县| 太原市| 吉木萨尔县| 鄂托克前旗| 镇坪县| 安庆市| 大洼县| 厦门市| 湖口县| 华阴市| 兰西县| 安化县| 内黄县| 察雅县| 新建县| 中卫市| 岑溪市| 镇雄县| 怀远县| 九江市| 鄯善县| 万安县| 蕉岭县| 宜兰县| 武冈市| 古丈县| 咸丰县| 来宾市| 安吉县| 枣强县| 池州市| 石狮市| 海晏县| 榆中县| 南部县| 平邑县| 昌宁县| 商都县| 公主岭市| 南通市| 平武县|