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

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

主站蜘蛛池模板: 军事| 岗巴县| 武夷山市| 平远县| 九寨沟县| 临高县| 西平县| 封开县| 天峨县| 刚察县| 普洱| 桃源县| 渝中区| 乃东县| 阿巴嘎旗| 大渡口区| 高台县| 安塞县| 石渠县| 青海省| 晋宁县| 丹寨县| 苏尼特左旗| 进贤县| 长岭县| 浮梁县| 汉寿县| 永康市| 洪江市| 衡阳县| 芦溪县| 清水县| 崇义县| 马山县| 横山县| 曲阳县| 阿瓦提县| 乌海市| 正宁县| 红原县| 修水县|