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

Exploring activity

Here's an activity, a little bit of a challenge for you:

Here's a nice little code block where you can start writing your own Python code, run it, and play around with it, so please do so. Your challenge is to write some code that creates a list of integers, loops through each element of that list, pretty easy so far, and only prints out even numbers.

Now this shouldn't be too hard. There are examples in this notebook of doing all that stuff; all you have to do is put it together and get it to run. So, the point is not to give you something that's hard. I just want you to actually get some confidence in writing your own Python code and actually running it and seeing it operate, so please do so. I definitely encourage you to be interactive here. So have at it, good luck, and welcome to Python.

So that's your Python crash course, obviously, just some very basic stuff there. As we go through more and more examples throughout the book, it'll make more and more sense since you have more examples to look at, but if you do feel a little bit intimidated at this point, maybe you're a little bit too new to programming or scripting, and it might be a good idea to go and take a Python revision before moving forward, but if you feel pretty good about what you've seen so far, let's move ahead and we'll keep on going.

主站蜘蛛池模板: 克什克腾旗| 正蓝旗| 福鼎市| 荥阳市| 师宗县| 共和县| 博野县| 青阳县| 洪湖市| 龙游县| 南靖县| 浙江省| 曲水县| 浦东新区| 满城县| 平果县| 海兴县| 周宁县| 荆门市| 游戏| 全州县| 任丘市| 白城市| 大渡口区| 鹤岗市| 金堂县| 隆子县| 班戈县| 平凉市| 凤城市| 玉溪市| 辽阳市| 平乡县| 东辽县| 永泰县| 响水县| 辽宁省| 肇州县| 敖汉旗| 平陆县| 和田县|