How to create Multiline comments in Python

How to create Multiline comments in Python

In this post we will give you information about How to create Multiline comments in Python. Hear we will give you detail about How to create Multiline comments in PythonAnd how to use it also give you demo for it if it is necessary.

we are going to learn about how to create a multiline comments in Python.

In Python, we can create a single line comment by using # character followed by the comment.

# this is a single line comment

Multiline comments

To create a multiline comment, we can use the triple quotes “”” syntax in Python.

The triple quotes syntax is normally used to create a multiline strings, but the string literals are ignored that are not assigned to a variable, so we are using it to add a multiline comment.

Here is an example:

"""you cansee meein multiple lines"""

Note: The multiline comment starts after the “”” and ends before the “””.

Any text we can add between “”” and “”” is ignored by the python compiler

Hope this code and post will helped you for implement How to create Multiline comments in Python. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs

For More Info See :: laravel And github

We're accepting well-written guest posts and this is a great opportunity to collaborate : Contact US