--Originally published at Waste your time
I´m not an expert on python but like in any other languague comments are really helpfull and they have 3 main purposes;
1°for people that are reading your code: imagine you are working with more people, they need to be able to know what you have just done.
2° for you: when you are programming, the codes are really long and some times over the time you want to go back to correct something, so it´s easier to know what you done and where it is.
3° reference
When you are writting something you want to make sure to use comments, fpr this reasons,
¿how do you put comments in python?
with a #
So everithing after the # python its going to ignore, and it wont put it as a part of the command
and there are two ways you can put it
alone in a line
in a line with code ( make sure the code is before the # )