Quantcast
Viewing all articles
Browse latest Browse all 11723

Python 3: Statements

Image may be NSFW.
Clik here to view.
Python 3: Statements


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 we'll take a look at the 'if' statement and we'll 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 we'll 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', we'll 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 we'll take a look at the exec function which can be used to execute arbitrary code that is in the form of a string. Then we'll 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.

Viewing all articles
Browse latest Browse all 11723

Trending Articles