"multiple comment line in python" Code Answer's
You're definitely familiar with the best coding language Python that developers use to develop their projects and they get all their queries like "multiple comment line in python" answered properly. Developers are finding an appropriate answer about multiple comment line in python related to the Python coding language. By visiting this online portal developers get answers concerning Python codes question like multiple comment line in python. Enter your desired code related query in the search bar and get every piece of information about Python code related question on multiple comment line in python.
multiline comment python
# While Python doesn't support multi-line comments, it can ignore anything
'''
inside a multi-line string!
Just wrap the comment in the three single quote marks,
And
you're
good
to
go!
'''
multiple comment line in python
'''
This is a multiline
comment.
'''
Source: stackoverflow.com
multiline comment in python
# Python is a language that doesn't support multiline comments
# In languages like JS, single line comments have // in the beginning
# and multiline comments have /* in the beginning
# and */ in the end
# the pound symbol in front of these five lines is the python equivalent of //
print("But there is a workaround!!!")
"""
In python, multiline string is written with 3 double or single quotes,
and the characters in between are treated as an entire string
but, if this string isn't assigned to a variable, python doesnt give any error
It instead ignores the string, similar to the behaviour it would have
towards a comment.
BUT!!!!!
If this is string is put just after defining a function, it is treated as a
docstring, or the documentation string of that function. So, it does have a
meaning and is not exactly ignored by Python
"""
def someFUnc():
"""
Python will treat this as a docstring
"""
pass
print(someFUnc.__doc__)
# OUTPUT:
# Python will treat this as a docstring
python multi comment
"""Put comments inside triple quotes"""
All those coders who are working on the Python based application and are stuck on multiple comment line in python can get a collection of related answers to their query. Programmers need to enter their query on multiple comment line in python related to Python code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about multiple comment line in python for the programmers working on Python code while coding their module. Coders are also allowed to rectify already present answers of multiple comment line in python while working on the Python language code. Developers can add up suggestions if they deem fit any other answer relating to "multiple comment line in python". Visit this developer's friendly online web community, CodeProZone, and get your queries like multiple comment line in python resolved professionally and stay updated to the latest Python updates.