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

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

主站蜘蛛池模板: 西和县| 潜山县| 隆回县| 连平县| 迁西县| 唐山市| 华容县| 永清县| 遂溪县| 澎湖县| 陆丰市| 乌什县| 五大连池市| 天台县| 晴隆县| 酒泉市| 久治县| 黄骅市| 松溪县| 松潘县| 靖州| 榆树市| 孟州市| 合水县| 巴青县| 石柱| 教育| 通道| 广元市| 浠水县| 竹北市| 卢龙县| 开江县| 久治县| 荥经县| 恩平市| 咸丰县| 即墨市| 舒兰市| 碌曲县| 东源县|