Welcome to this lecture in this lecture.
We're going to learn about keywords in Python.
So what are the keywords.
So first of all keywords are those type of words that are reserved in the python so you cannot use this
type of force in your fancy name or variable name or any other identifiers.
So these are basically reserved for their purpose.
So Python as the 33 keywords in the python three point seven so they are all the case sensitive.
So I have here and the file here saying that this is the list of all keywords so you can see the files
class finally so these other results or.
That is going to be use for this specific purpose.
So you cannot use this file or this identifiers for any other purpose.
So this is really important.
So you can see these other keywords if you want to make.
Let me say variable with the D F which is the keyword in a sign something value to it.
It is not valid because you cannot use these keywords is your variable name.
We'll see about this in the upcoming lecture in the detail.
But for now you can see that key words are the Reserve Board that cannot be used for any other purpose.
That basically doing only one talks.
That is this defined specifically for that purpose so you can see this true can be used as a boolean
type only so you cannot make variable name is true or once a name is true.
So all of these are you reserved word which are normally called is keywords.
So next thing is to see these statements so let's see the statement now these statements are basically
the.
Now what do we call that is the Python interpreter.
Execution instruction so instruction that the Python interpreter can execute is normally called statements.
So we see the assignment statement now in this lecture.
So we'll see that how multi line statement can be assigned.
So first of all I'll just do some addition over here.
One two.
Let me say three C had more.
I want to add more but I want to go down to this line.
So that means I have to make use up this backwards less and go down.
After that I can make use of four again and I can make use of five add me six and if I just sit into
now.
So this is your statement.
So if I want to print the value of B I'll just print it here and it will soar at So twenty one which
is the addition of all of this value.
So if you want to make you use up multiply statement you'll simply pass here backwards less and thus
complete your statement over here.
So his statement is simply an instruction that is going to be executed by your Python interpreter.
So next thing is your python comments.
So let me see five hi to me.
Ah let me see five.
Multiply with six.
If I say this this is going to give us a 30.
But if I say has first and five multiply with me six then it is going to give us nothing because this
is your comment.
So comments are really important.
We use this has symbol for is starting to write a comment so comments are very important while writing
a program.
It will describe what's going on so that a person looking at your source code does have the feeling
that this code is about ADR tax that is going to be executed or basically if you just put any statement
is starting with this has symbol their comment they want to be executed with the Python interpreter
that means this will be ignored by the Python interpreter.
So let me this open my new script and if I say this again let me say demo derby way and pure extension
is important and it is right here.
So let me just replace it and now it is giving us OK.
So now if we have here the demo file so help to remove.
Let me this close one.
So now if I say that let me just print
Hello First
let's go down here and up to that I have to this comment this out.
This is print statement.
If I save this and execute then it is going to give us a halo but not the either of these.
This is printed statement.
If I just remove this has and if I save this and if I just execute this it is going to source invalid
syntax because this is a bunch of a string over here which is created which doesn't have any meaning.
So if you want to give any information about the code or if you want to just ignore that code to be
executed by the Python interpreter you simply put here has to represent that.
This is your comment and this one to be executed by the Python interpreter and the comments are for
a programmer and it is to understand about the program.
It is not for the Python interpreter.
It will be executed only if we just remove has.
And if you want to give information about the code you simply put has and put the comment about what
this code is going to do in this case.
This is the printed statement that is going to be printed.
Hello.
In the console.
So this is your single line comment.
We have a multi line comment too.
So let's see about that.
So multi line is basically if you type here this is my comment.
It is in a multi line.
That means if you just put in single has it is going to only comment.
This single line everything you write over here will be commended but if you go down here it won't be
commenting.
So if you want to just make a multi line comment all you have to do is put here multiple courts and
just close with these multiple courts.
And now if I save this and execute this is not going to have any effect because this is a multi line
comment.
And if we just remove this one and remove this if you say this then it is months of a gee whiz that
will sue us in value syntax.
So in this letter we saw how we Kansas work with these statements and how to work with the python comments.
So soon the next one.