Viewers: in countries Watching now:
Due to its power, simplicity, and complete object model, Python has become the scripting language of choice for many large organizations, including Google, Yahoo, and IBM. In Python 3 Essential Training, Bill Weinman demonstrates how to use Python 3 to create well-designed scripts and maintain existing projects. This course covers the basics of the language syntax and usage, as well as advanced features such as objects, generators, and exceptions. Example projects include a normalized database interface and a complete working CRUD application. Exercise files accompany the course.
So we are going to talk about the logical values of true and false here, and for this purpose I have started up the Python Shell, which on the graphical interfaces will be called Idle, or if you're in a command-line interface, it's simply the Python interpreter. It gets you exactly the same interface. So, I'm going to start by creating couple of variables. We'll call them a and b, and we'll assign them values of zero and 1 a, b - 0, 1. And I'm going to say a==b, and so the double equal sign is the equality operator.
It tests for equality between two values, and it returns either True or False. In this case it returns False, and false is actually a keyword in Python, which is a Boolean value for False. So, if I say a < b, I will get the Boolean value True, or a > b, I'll get the Boolean value False. In fact, you can assign True and False to variables. I can say a = True, and if I type a by itself, I get True. If I type, type of a, you'll see it is class 'bool'.
So, True and False are objects of class 'bool,' and they are mutable objects of course. So, if I type id of a, I get an id, and if I assign b = True and type id of b, I get exactly the same id. In fact, if I simply type id of True id, I will get that id. So, true and false are Boolean objects, and they are very simple, and they're simply used for representing the Boolean values of true and false.
Find answers to the most frequently asked questions about Python 3 Essential Training .
Here are the FAQs that matched your search "" :
Sorry, there are no matches for your search "" —to search again, type in another word or phrase and click search.
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.