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

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!

主站蜘蛛池模板: 德安县| 富裕县| 晋中市| 青岛市| 天津市| 德兴市| 汝阳县| 襄樊市| 四子王旗| 玉龙| 罗田县| 航空| 安陆市| 沙田区| 邵阳县| 东乌珠穆沁旗| 菏泽市| 宁安市| 镇安县| 常山县| 安溪县| 南丹县| 云龙县| 上犹县| 监利县| 壤塘县| 盐津县| 武穴市| 博野县| 广平县| 香格里拉县| 长岭县| 孟连| 兖州市| 三河市| 南澳县| 新巴尔虎左旗| 温州市| 会东县| 鄂尔多斯市| 平罗县|