how to comments in python
Comments in Python.
In this post we are going to learn about Comments in Python. Let's start..!
First of all What is comments ?
Comments is a simple text that we write in code. And this text always start with special character '#' .
for example.
here you can see I have written a normal text starting with '#' This is comment.
Something you should know about Comments.
1} Python comments should be start with a special character i.e. '#' .
2} The text you will write as a comment that will be ignored by Python interpreter. or All the text written after '#' in that single line will be ignored by interpreter.
3} For commenting multiple lines we use triple single quote ( ''' ''' ) but that is not recommended . You can use that but that is not standard way to use comments. The standard way of using comments is starting with '#' .
Advantages and uses of comments in Python.
If you have any doubts in this post then please ask me in comment section below. I will try to solve it.
If you like these post and you have learned something from this then share this post with your friends and family.
Keep learning always.....!!! 😇😇😇