دوره Programming for Everybody (Getting Started with Python) ، فصل 5 : Chapter Three- Conditional Code
دربارهی این فصل:
In this section we move from sequential code that simply runs one line of code after another to conditional code where some steps are skipped. It is a very simple concept - but it is how computer software makes "choices".
این دوره شامل 5 فصل زیر است:
Not a lot of languages make the indenting of lines a syntactically meaningful thing, but that is how Python works. Here's the good news, and that is, if you're using our recommended Atom text editor, once you save the file with a .py extension, it automatically just uses, you can hit the tab key and it moves in spaces. So what you want to do after a while, and it won't take you too long, but sort of train yourself to start thinking about the fact that these are blocks of code.
And so, the key is, is when this code blows up, it's something that you kind of take personally because you are that set of instructions, and when a traceback happens inside the memory or CPU, that's you that's being vaporized. I mean, if you were to use software that I built, like the autograder for this class and you started getting tracebacks, I'm like, hey, that's kind of a personal thing. But that's okay, we've compensated for that and we told Python, hey, we know that might happen and if you detect a traceback, jump straight into the except block, run this, set it to -1, and then continue on.
So let's get started on assignment 3.2, so the nice thing that we can do here is that we can say file, save as, and go up a folder to PY for Everybody. Because to be a programmer, even doing the simplest stuff, you've got to manipulate files, and you've got to be able to use command line. And now I see my new ex_03_02, so I'll say cd ex_03_02 and part of being a programmer is having a lot of folders with wierd names to organize your stuff.
I originally started this project with a friend of mine called Avit Quartinas who teaches in Sweden, and the two of us both had similar issues with our students. So yeah, I think this viral aspect also coupled with the fact that we asked SparkFun Electronics, their online store was again beginning to become very successful. And so we, he kind of fueled our growth in the U.S. Then me and David Cuartielles spent many, a number of years traveling around the world, but mostly in Europe at the beginning, doing workshops.
Hello, this is Dr. Chuck here and I'm coming to you right now in the continuing saga of Internet History Technology and Security. And Dr. Chuck was really inspiring person for me, and it really helped me to realize how these online courses worked. Here we have wonderful office hours here in Seoul, Korea and now we're gonna go all take some pictures so see you on the Net.
مشارکت کنندگان در این صفحه
تا کنون فردی در بازسازی این صفحه مشارکت نداشته است.
🖊 شما نیز میتوانید برای مشارکت در ترجمهی این صفحه یا اصلاح متن انگلیسی، به این لینک مراجعه بفرمایید.