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

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.

主站蜘蛛池模板: 轮台县| 类乌齐县| 邢台市| 金华市| 马关县| 黎城县| 古丈县| 改则县| 抚宁县| 当涂县| 逊克县| 新郑市| 织金县| 高阳县| 响水县| 云安县| 木里| 武乡县| 霍林郭勒市| 赣州市| 博爱县| 鄂州市| 石景山区| 淮安市| 邯郸县| 马龙县| 四会市| 常宁市| 连云港市| 和平区| 广安市| 铜山县| 报价| 申扎县| 墨竹工卡县| 大新县| 荥阳市| 林州市| 乌兰察布市| 阳城县| 苍山县|