multiline comment in python

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

showing results for - "multiline comment in python"
Zylen
28 Jun 2017
1# While Python doesn't support multi-line comments, it can ignore anything
2'''
3inside a multi-line string!
4Just wrap the comment in the three single quote marks,
5And
6you're
7good
8to
9go!
10'''
Vincenzo
08 Aug 2020
1#There is no way to comment multiple lines in Python.
2#You just keep using "#" symbol to comment each line out.
3
4'''
5Technically you could also use triple single quotation
6marks like so, but this formatting does not count
7as "true" source code comments that are removed by
8a Python parser.
9'''
Laura
20 Jan 2020
1# Python doesn't support multi-line comment blocks out of the box.
2# The recommended way to comment out multiple lines of code in Python is
3# to use consecutive single-line comments.
4# feelsbadman
Ewenn
23 Jan 2016
1#%% There are not multiline comments in python,
2# this # is the only form of commenting but, people use
3# """triple quotes""" for multiline commenting but this
4# is actually a String the interpreter will read and 
5# will ocupy memory. If you dont put this kind of string
6# into a variable it will be collected on execution
Dario
26 Jan 2018
1# This a comment
2#Or This
3#For a comment written in more than a line
4#You just add triple quotes without assigning it a variable or putting it in a
5#print statement
6'''
7Like This
8But only for Python
9As far as i know
10'''
Fernanda
19 Oct 2016
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
python put lines in commentpython mutliline commentcomment python multiple lineshow to coment many lines at once imn pycomment in python multiple linecommenting a section in pythonmultiple line comments pythonpython mult line commenthow to add multi line comment in pythonhow to comment multiple lines with 23 in pythonhow to commen multiple lines together in pythoncomment sections pythonhow to comment many line using pythonmultiline comment in pythonin python multi line comment starts withpython multiline comment shortcuthow to comment multi line in pythonpython comment longuncomment triple double quotes in pythonhow to write multi line comments in pythoncomment various lines pythonmultiple line comments in pythonmultiple line comment out in pythonblock aa lot of lines in pythonpython multi line commentswpython multi code commentmultiline comment pythonhow to make a long comment in pythonhow to make multiline comments in pythocomment multiple lines in python at oncemultiline cmments pythonpython multyline commentpythin comment out multipel lineshwo to single line comment multiple lines in pythonpython pragraph commentpython program to print the multiline commentwhy are there no multiline comments in pythoninline and multiline comments pythonpython 3 block commentmulti line comment in pythomncomment multiple lines pythonhow to comment whole code in pythoncommenting every line in pythonhow to comment out multiple lines in python with 23multiline comments pythjonhow to comment multiple line pythonmultiline comment in python usespyhton multiline commentcommenting multiple lines in pythoncomment multiple lines of code in pythoncomment several lines pythonpython long commentmultiname comment pythonmulti line comments in pythonpython multiline commentpython multi line commentsmulti line comment pyhow to make lines of code comment in pythonmultyline comment in pythonhow to make multiline commetpython3 multiline commentsmulty line comment in pythoncomment multiple line in pythoncommenting more than one line in pythonmultiline commenthow to make multiple line comment in pythonpython many lines to commenthow to add multiple line comments in pythonhow to do a multiline comment pythonpython multiline commentss notationcommenting in python multiple linespython multiple commentmultiple line comment in pt 3dythonhow to mass hide multuple lines in pythonpython do multiline commentshow to multiple comment in pythoncommnt multiple lines pythonmultline comment in pythonpython multiline comment 5d 5chow to comment multiple lines in python djangohow to make multiline comment in pythoncomment a whole section in pythonpython large commentshow to havea multiple line comment in pythonputting lots of lines under comment together pythonpython 2 lines after commentshow to multilibne comment in pythonpython multiline comment blockmultiline python commendspython comments multi linesblock section pythonhow to comment out multiple lines in pythonhow to print a multiline comment in python commandpython mulitline commentspython comment sectioncomment block of line in pythonhow to comment out multiple lines with 23 in ythonhow to comment out multiple lines together in oythonhow to declare multiple line comment in pythonhow to comment in multiple lines in pythonmultilne comments pythonhow to coment down multiple line in pythonhow to add multiple comments in pythonwhy doesn 3bt python have multiline commentshow to add multiline comment in pythonhow to multiline comment in pythonhow to comment several lines in pythonmult line comment pythoncomment multipleline in pythonmultiline comment in python 3 8python get multiline commentcomment block pythonpycharm comment multiple linescomment multiple in pythoncomment multiline in pythonhow to make comment multiple lines in pythonhow to write to write multiline comment in pythonmultiple comment in pythoncomments in python multiple linesmultiline commentrs on pyhtonmultistroke comment in pythonpython comments in quoteshow to make multiple line comments in python using 23multie line comment in pythoncomment multiple lines pythpnhow to print multi lines comment in pythonmultiline coments in pythonsyntax for single line comment in pythoncode fights comment multi linepython comment multiple already written linescomment syntax for one line in pythonpython multi line commentsset mulitple lines in comment pythonmultiline comment oyhonpython comment in multiline stringpython multi line commentstandard way to make multi line comment in pythoncommenting multiple lines in python in windowsmultiline comment pyhow to add comments to a long line pythoncomment more than one line in pythonmultiline comment python 27what is multi line commenting in pythonall comment in pythonpython block commetnmultiple comment lines in pythondocument paragraph comment pythonhow to make a multiline comment in pythonhow to comment multiple lines string in pythonhow to write a multiple line comment in pythonpython multi comenthow to have long comment pythonhow to comment multiple lines in python shortcuthow to do double line comment in pythonpython long commentspython multi row commenthow do i comment out multiple lines in pythonnewline pythonmulti line comments pythonmultiline python commentmultiline comment in pyhtoncommenting in python 3multiple comments pythonhow to comment lines in pythonmultiple lne comment in pythonhow to write multiline comment in pythonhow to comment out an entire section in pythonwindows python comment multiple linescomment out mutlip lines pythonmultiline comments e2 80 a2 python import statement python single line commentmulti line ocmments pythonmuti line comments in pythonmulti line commentpythonhow to comment multilines lines at once in pythoncommenting a large strinfs in pythoncomment out pythonhow to comment multiple lines with in pythonmulti lne comment in pythonhow do you comment out multiple lines in pythonpython comment multple linesusing multi line comment for single linepython how to comment out multiple linesshortcut to comment multiple lines with 23 in pythonpython how to comment multiple lines at oncemake comment spanning multiple lines in pythonhow to make multiple lines comment in python subline textmultiline comment 23 in pythoncomment out code chunks in pythonpython multiple lines commentcomment multiple linews pythonghow to do multi comment in pythonpython string over multiple lines commentshow to add comment in multiple linehow to give multiple line comment in pythonpython commenyhow to comment out in python with multiple linesmultiline comments in pythonhow to write comment inside multiline code in pythonhow to comment many lines of python at oncehow to comment multiple lines of code pythonpython multilane commmentpython comment several linespython comments triple quotesuse a multiline string to make the multi line commenthow to comment multiple lines of code in pythonpython multiple lines commentspython multi line commenthow to write a multi line comment in pythonmake several lines comment pythoncomment long pythonhow to make a multi line comment in pythonpython multiline comentpython multiple line comment outmultiline coment in pythoninspect function ignore multiline commentpython commend multipul linescommenting several lines on pythonmutiline commentshow to multiple line comment in pythoncomment multiple lines of code pythonhow can make block as comment in python with one click with 23how to create multi line strings as comments in sublime text for pythonhow to put multiple line comment in pythonshortcut to comment multiple line in python multi line comment pythonmulti lined comments pythonmultiline comment on pytohncomment multiline pythoncomment out several lines pythonhow to add 23 multiple line comment in pythoncomment many lines in pythonpython triple quote commentmultiple lines python vs in notepython multi lien commenthow to have multiple lines of comment in pythondoes python have multiline commentuse a multiline string to make the multi line comment in pythonpython how to make multiline commentmulti line commet in pythonmulti line cooment in pythonmutli line comment pythonto comment multiple lines in pythoncomment multiple lines in python shortutcommentaire python multi linehow to comment multiple lines in python at oncepython commenting multiple linespython how to do a multi line commentpython comment paragraphhash multiple lines pythonpython code comment multiple linespython comments blockpython multiline comments python multiline comment codemutiline comment pythoncomment python multilinehow multi line comments in pythoncomments in a multiline string pythoncomment multiline string pythonhow to comment multiple blocks in pythonmulty line comments in pythoncomments in python for paragraphhow to put multiple comment in pythonhow to do a multi line comment in pythoncomment all pythonhow to block comment on pythoncommenting code python with quoteshow to do multiple line comment in pythonhow to comment in python multiple lineshow to multiline comment pythoncomment out multiple liunes pythoncomment in python3multi line comment pythonhow to make mutiline comment in pythonmultiple lines comment pythonhow to comment multiple lines pythonhow to write multi line comment in pythonpython has multiline commentspython multiline comment fomatrcomments in python multiplecomment two lines at once in pythonpython how to do multi line commentblock multiple comment pythonpython comment multi linedo python have multiline commentwhich character is used in python to make a multiople line comment 3fmany line comment in pythonpython comments multilinehow do you make multi line comments in python multiline comment pythonncomment all lines in pythondoes python support multiline commentcomment multiple lines in pythonmulti line commend pythonpython multiline code commentmultiline comment pyhtonmultiple lines comment in pythoncomment multiple line pythonhow to comment out everything in pythoncomments in python multilinepy multi line commendadd block comment in pythonhow to add multiline comments in pythonpython 3 comment multiple linesmulti line comments in pythonshortcut to comment out multiple lines in pythonpython comment multiple linehow to comment more than one line in python oncemultiline comment inpythonmulti line coment pythonhow to make a multi comment in pythonbulk comment in pythonmulti loine comments pythonpython comment ouy multiple linescomment block in pythonhow to make multi line comments in pythoncomment out multiple lines in pythonhow to comment a section in pythoncomment python several linescomment out multi line pythonblock comments pythonmulti comment in pythonmultilien comment in pythonblock comment pythonpython note multiple linesmulti line comment in pythoncommenting in python for more than 1 linepython create multiline commentcommenting many lines in pythonmultiline comments python codehow to make a multiline comment pythonmulti line cocmment pythonhow to make a multi row comment in pythonpython commend out multiple lines of codehow do you include multi line comments in python 3fcomment multiple lines in python shortcuthoe to multiple line comment out i pythonpython multline commentcomment multiple lines pythomhow to make multi line comment in pythoncomment many lines pythonmulti line comment in pythonhow to comment multiline in pythoncommenting out multiple lines in pythonhow to do a multiline comment in pythonpython multiline comment parametershow to multi line comment in pythonhow to write mulyiline comments in pythonpython mylti line commenthow to create a multiline comment in pythonpython commenti multilineahow to comment many lines in python using 2fpython multiline notehow to add single line comment in python 3fhow to print a multi line comment in python commandmulti line commenthow to comment multi linesingle line comment in pythonmulti line comment in python 3multiline comment in pythonhmultiline comment python 3how to pt a multi line comment in pytohncomment out mupltiple lines of code pythodcomment multiple lines python shortcutpython multi comment linepython block commenthow do you comment out sections of code pythonlong comments in pythonhow to make multiple comments in pythonmultiline comment in pythinhow to make multiple line comment in sublime text with triple quotespython block comments examplehow to mulit comment pythonhow to turn multiple lines into comments in pythonpython multiline comment syntaxpython multi level commenthow to comment several lines in once in pythonshortcut to comment multiple lines in pythonhow to make multiline comments in pythonway to comment out multiple lines pythonmuliline comments in pythonhwo to multiline comment in pythonmultiple line comment in python shortcutpython make multiple lines commentcomment multi line pythonmulti line notes python 2f 2a in pythonwhich of the following is used to make multiline comment in python 3fpy comment multiple lineshow to comment a bunch of lines in pythonpython multiline commentsmultiple line comment in pytonmultiline commment in python 22 22 22 22 22 22 22 multiline comment pyhtonmulti line commenting pythonmulti libe coommecnt pythonwrite comment insode multi line expression pythioncomment out multiple lines python windowshow to wrap multiple rows of code in a comment in pythonpython comment multiline instructionpython multi commenthow to make multi line comments in pythonhow to make comments in python multilinepython comment multiple lineshow to comment all lines in pythonhow to comment many lines in pythonpython comment outpython multilne commentpython multi comment 27commenting a large string in pythonhow to multiline comment command in pythonhow do you comment multiple lines in python 3fmulti line list or comment in pymultiple line comments in colab texboxcommand to comment multiple lines in pythoncomment block of lines pythonhow to commennt multiple lines in python at oncehow to do a multi line comment in pythonpython multiple line commentshow to coment multiple lines pythohow to multiline comment in python 3python 3 8 multiline commentone line comment pythongroup comment pythoncommento multilinea pythonhow to write multiple line comments in pythonhow to comment a line pythonpython how to put multiple lines of commentmultiline comments in python 3fcomment more lines pythonhow to comment multiple lines in pythoncommentaire python multilinehow to write multi line comments in pythonmultiline comment pytohncomment multople lines of code pythonpython multi line code commentinghow to dod multip line comment in pythonpython how to comment several linespython make multiline commentmultiline commenting in pythonmulti line py commentsingcomments multiple line in pythoncomment multiple lines in python with 23multiline comments pythondoes python have a multi line comment function 3fhow to do multi line comment in pythonwhy doesn 27t python have multiline commentspython string ignore commentmulti comments in pythonshortcut for commenting multiple lines in pythonhow to make single line comment in pythonhow do you multiple line comments in pythonmultiline commnet pythonmulti line comment python 2long line comments pythonmultiple line comment pythonpython pep8 multi line commenthow to write multiple lines of comments in pythonhow to comment out few lines in pythonsingle line comment pythonmuliline comment pythonpython comment many lineshow to use multiline comment in pythonhow to write python multiple line commentmuiltline comment in pythonhow to do multiline comment in pythonlong comment pythongenerate the multiline comment in pythonhow to comment single line in pythonhow to comment muiltiple lines in pythoncomment out python multiple lineshow to comment on multiple lines in pythonpython have a multi line comment functionhow to multipliune comment pythonmultiple comments in pythonmultiline comment in pythnpython mutliline commentsmulti line python commentmulti comment pythonhow to hash out multiple lines in pythonthe multi string comment pythonis there multi line comment in python 3fmulti lines comment in pythonmulti line comments in python 3uncomment triple double quotes the code in pythonpython muliline commenthow to comment set of lines in pythoncommenting multiple lines of code in pythonpython comment out multiple linesmulti line comment pyhtohnhow to comment more than one line in pythonpython how to comment multiple linespython multiple row comment outmultline comments pythonmultiple comment line in pythonmulti lline comment pythonpython multiple comment linehow to give multiline comment in pythonhow to comments more than 2 lines in pythonpython multiple commentssingle line comment in pythonmutli line commet pythonmulti line comments pythoncomment out in pythonmultiline comment in python with 2a 5cpython comment selected lines multipy multiline commentcomment multiple lines at a time pythonmulti row comment pythonpyton multi line commenthow to comment out multiple lines of code pythoncomment multple lines pythonhow to multi row comment pythonhow to write a multiline comment in pythonpython comment multiple lines shortcutmult line python commentmultiple commenting out in pythonmulti line comment pyythoncomments python multiple lines long comment in pythonhow to make multiple lines comment in pythonmultiple commenting out code pythonhow to make multline comment pythonhow to add multi lune comment pythonpython comment multiline stringhow to write multi line comment s pythonpython block commentshow to make comment on python more than 1 linepython multiples lines comentpython muliti line commenmulitline comment pythonhow do we do group comment in pythonseveral line in python commentcomment out multiple lines pythonmulti comment line in pythonpython comment blockhow to multi comment in pythoncomments multiple lines in pythonpython3 multi line coomentmultiline line comment in pythonhow to make a hole parragraff a comment pythonmore line comment pythonpython multip line commentmulti comments pythonscommenting multilines in oythonpython idle multiline commentcomment multiple lines in python 23python bulk comment howhow to comment more lines in pythonpython multilinecommenthow to add multiple line comment in pythonhow to add single line comment in pythonhow to comment mutiple lines of code pythonpython multiple line commentcomment multi c3 b1line pythonexample of single line comment in pythonhow to select and comment multiple lines in pythonpython comment single linecomment several lines in pythonmultiline comment in python shortcutmaking multiline comment in pythonmultiple line comment in pythonpython multispace commentpython multi line commenmultiline comemnt pythonhow to comment out multiple lines of code in pythonmake a multiline commentmulti line comment in python 27multiline comments pytoncommenting multiple line in pythonpython comments multiple linesdoes python have a multiline comment functionpython multy line commenthow to make multiple line comments in pythonpython mul 3bti line commentpycharm multiline commentmultiline comment in ptpython mulitline commentcomment more than one line pythondoes python have multiline commentspython comment blockshow to comment a multiple lines in pythonhow comment multiple line in pythonmultiline comment in python 3how to comment out many lines in pythoncommenti multilinea pythonhow to comment multiple lines together in pythonoptimal multiple line comment in pythonpython fast way to comment multiple linescomment multiple codes in pythonmultiline comment in python keysmiultiline comment pythonpython comment out whole sectionsingle line and multiline comments in pythonmultiple lines comments in pythonpython muiltline commentmulti comment pythonpython more line commenthow to comment a paragraph in pythonmultiline comment in python