Python 3: Statements
HDRips | MP4/AVC, ~158 kb/s | 1024x768 | Duration: 01:01:53 | English: AAC, 32 kb/s (1 ch) | + Work Files | 89 MB
Genre: Development / Programming
In this course we are going to take a look at statements and how they fit within the overall program structure. Then well take a look at the ‘if statement and well see how that is used to make decisions. Then we will take a look at looping constructs and how the ‘for keyword can be used to iterate over the elements within a sequence.
Next well take a look at how the ‘while keyword can be used to iterate a loop as long as a Boolean expression remains true. Next are ‘continue and ‘break, well see how they can be used to change the normal course of action and the normal flow of a looping construct to either continue back to the top or to break out and continue beyond the end of the loop. Then well take a look at the exec function which can be used to execute arbitrary code that is in the form of a string. Then well take a look at exception handling, how to raise an exception, and how to catch an exception for dealing with unusual circumstances, in particular dealing with error type situations.
Other Development / Programming lessons: