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

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!

主站蜘蛛池模板: 黎平县| 扎兰屯市| 米林县| 西昌市| 芜湖县| 榆林市| 普兰店市| 监利县| 五家渠市| 扎兰屯市| 山阳县| 巨鹿县| 商河县| 大埔县| 达孜县| 夹江县| 孝感市| 连平县| 肥城市| 咸丰县| 抚顺市| 香港 | 广丰县| 兴安盟| 盐边县| 合水县| 汕尾市| 通榆县| 禄劝| 连云港市| 全椒县| 太原市| 云安县| 曲周县| 饶平县| 庆安县| 铜川市| 娄底市| 临潭县| 正阳县| 和硕县|