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

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

主站蜘蛛池模板: 三原县| 定边县| 浑源县| 垫江县| 涟水县| 佛山市| 来安县| 嘉定区| 慈利县| 白水县| 德惠市| 福州市| 渝中区| 晋州市| 达拉特旗| 大宁县| 乐业县| 洪湖市| 佛冈县| 营山县| 抚宁县| 威海市| 石首市| 精河县| 抚顺市| 昌邑市| 家居| 沙湾县| 桃源县| 古蔺县| 浦东新区| 洱源县| 介休市| 石狮市| 遂溪县| 布拖县| 江达县| 衡东县| 峨边| 宝兴县| 东宁县|