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

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

主站蜘蛛池模板: 黎城县| 印江| 育儿| 榆林市| 廉江市| 康平县| 江达县| 治县。| 杭锦旗| 吉安县| 邢台县| 铁力市| 二连浩特市| 夏河县| 灵石县| 浮山县| 西乡县| 定西市| 墨玉县| 察雅县| 凤山县| 绥宁县| 连江县| 巢湖市| 肥城市| 七台河市| 徐汇区| 上思县| 鲁山县| 汾阳市| 合水县| 晴隆县| 思南县| 新密市| 门源| 新和县| 大英县| 铜梁县| 浦东新区| 都江堰市| 临沭县|