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

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.

主站蜘蛛池模板: 太仓市| 专栏| 呼玛县| 兴文县| 济源市| 遂平县| 黄浦区| 新野县| 山阴县| 彩票| 遵义市| 太康县| 林口县| 曲周县| 峨边| 永川市| 香格里拉县| 双江| 盐边县| 南漳县| 白城市| 车致| 泾源县| 高台县| 司法| 奈曼旗| 牡丹江市| 石城县| 微山县| 桂阳县| 高要市| 阳新县| 太湖县| 漾濞| 乌兰县| 万宁市| 松滋市| 辽源市| 北京市| 瓮安县| 凭祥市|