This is the 14th in a series of videos providing a tutorial on Python 2.7 using Anaconda Python and the Spyder IDE. Click here to go to a “home page” for the video series.
This video introduces the “if” statement in Python. “If” statements are, of course, extremely important in programming languages as they are the most direct way to implement conditional logic. And it is the ability for programs to make “decisions” based on such conditional logic that allows program to perform non-trivial tasks.
The source code used in this video can be found here. You can right click on the link and use “Save As” to save the file.
Note: The source code files are plain text files with a “.txt” extention. You will probably want to change the extensions to “.py” after you download them. If you do so, please be aware that if you have Python installed, the file will become executable, so that it will run if you click on it (accidentally or otherwise).
The video is about 27 minutes long.
Video Index: For Loops
Click on the topics below to jump to that location in the video.