python multi comment

Solutions on MaxInterview for python multi comment by the best coders in the world

showing results for - "python multi comment"
Jacob
10 Jul 2020
1# Python is a language that doesn't support multiline comments
2# In languages like JS, single line comments have // in the beginning
3# and multiline comments have /* in the beginning
4# and */ in the end
5# the pound symbol in front of these five lines is the python equivalent of //
6print("But there is a workaround!!!")
7"""
8In python, multiline string is written with 3 double or single quotes, 
9and the characters in between are treated as an entire string
10but, if this string isn't assigned to a variable, python doesnt give any error
11It instead ignores the string, similar to the behaviour it would have 
12towards a comment. 
13BUT!!!!!
14If this is string is put just after defining a function, it is treated as a 
15docstring, or the documentation string of that function. So, it does have a 
16meaning and is not exactly ignored by Python
17"""
18def someFUnc():
19  """
20  Python will treat this as a docstring
21  """
22  pass
23
24print(someFUnc.__doc__)
25
26# OUTPUT:
27#   Python will treat this as a docstring
queries leading to this page
22 22 22 22 22 22 22 multiline comment pyhtonhow to comment out multiple lines in pythonhow to comment many lines in pythoncomment out several lines pythonhow to comment multiple lines in pythonmultiple line comments pythoncomment multiple line in pythonmulti comment in pythondoes python have multiline commenthow to multiline comment in pythoncomment multiple lines pythonmulti line comment in pythonpython multi comment linedouble line comment in pythonhow to make more line comment in pythonpython multi code commenthow to do a multi line comment in pythonmultiple line comment in pt 3dythonmultline comment in pythoncomment multiline string pythonmulti line comment pythonmultiple line comment out in pythoncomment out multiple lines in pythonmultiline comment pythonmultiply comments pythonhow to do a multiline comment in pythonsingle line comment in pythonmultiline comments in pythonpython comment out multiple linesmultiple comments in pythonmultiline comment in pythnhow to comment multilines lines at once in pythoncomment python multiple linesmultiple line comment pythoncommentaire python multi linehow to comment more lines in pythonpython multiline commentsmake comment spanning multiple lines in pythonmulti lined comments pythonhow to comment several lines in pythonmultilien comment in pythonhow to comment in multiple lines in pythonhow to write multiline comment in pythonhow to select and comment multiple lines in pythonpython multiple line commentpython comment ouy multiple linespython single line commentpython multi line commentspython multiline commenthow to comment out multiple lines of code in pythonmultiline comment in pythoncomment multiline pythonmulti line comment pythonpython multi row commenthow to make single line comment in pythonhow to comment on multiple lines in pythonhow to comment multiple lines together in pythonhow to declare multiple line comment in pythonpython multi commentmultiple commenting out code pythonpython comment multiple lineshow to make a multiline comment in pythonhow to comment single line in pythonexample of single line comment in pythonhow to make multiple line comment in pythonmulti comment pythonpython how to comment multiplae limespython multi line commenthow to make a multi line comment in pythonpyhton multiline commentmultiple comment line in pythoncomments in python multiple linesto make a comment with multiple lines in pythonhow to comment multiple lines in python at oncecomment multiple lines in pythonpython how to comment multiple lines at onceis there multi line comment in python 3fthe multi string comment pythonmultipline comment pythonmultiple line comment in pythonseveral line in python commenthow to multi row comment pythonhow to put multiple line comment in pythonwhat to use for double line comment in pythonpython mulitline commentmultiline comment pycommenting multiple lines in pythonmultiline comments pythoncomment out multiple lines pythonpython multi comment