Hello and welcome back to another class of course about Python.
So in this class we are going to talk about something very simple.
You guys can do to be able to well to upgrade your programming career let's say this way.
It's very simple.
Today's topic will be about comments so commenting a project where how exactly you can come into a project
or what exactly is a comment in Python.
So very simple.
Let's write down a simple line of code let's say.
Write down print something
as you can see we have our line of code here.
This line of code asks Python to print this element which is something.
So if we run our line of code Python to print something let's say I have lots of lines of code and they
want to describe each line where each function what exactly it will be used for or this line of code
will be used for what without necessarily printing those elements so for example I want to describe
this line of code.
So it's very simple.
The way I'll describe it I'll simply use hashtags.
So hashtags will give me the possibility to write down comments on my landfills.
Let's say for example here I have print something.
So let's say I want to explain what it does.
So
something will be printed so you can see this is it come.
And if I run my app the only thing that will be printed is something because this is just used as a
come in let's say for example I have other lines of code.
So Brent let's say one plus one right so it gives us two.
So in this case let's say I want to describe this in this place I'll simply use a hashtag and I'll say
this is an addition.
So as you can see I'm able to describe each line of code that I want to describe without necessarily
printing it.
So even if I run my app I'll be able to describe it.
I can put comments anywhere I want.
So comments are really here to help you understand what what is your code.
So let's say for example you want to describe as I said a part of your code or a line of code.
Well you're gonna use comments and the a good way.
Well the official way to use it is by you using hashtags.
It's very simple you write down hashtag.
You write down your comment.
So this is a comment and that's it.
This will be everything that will come after the hashtag will be comments.
In this case you write down your code here.
So whatever you want to write them to print x and whatever comes after your whatever comes after the
hashtag will be coming on this line of code.
Of course if you write down something it's going to be considered as code but as soon as you write down
the hash tag it's gonna be coming.
So as you can see guys it's very very simple to use and it can be very useful when you guys have a huge
wealth when you guys have huge applications.
And when you need to write down a lot of code so that's it for this class guys and see our next class.