python multiline comment

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

showing results for - "python multiline comment"
Amina
10 May 2018
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
Sean
06 Oct 2018
1#This is a comment
2#And another one
3print("Hello !)  #Comment in the same line
4      
5"""
6A multiline
7comment
8"""
9print("Hello !)
Juan Martín
30 Oct 2016
1# This is a "block comment" in Python, made
2# out of several single-line comments.
3# for this select the code and use shortcut Ctrl + /
4
queries leading to this page
shortcut to comment out multiple lines in pythoncomment in python 3comment multiple lines pythonpython function description commentcomments in pyhton 27how to comment multilines lines at once in pythonmultiple line comment in pythonhow to select and comment multiple lines in pythoncommenting many lines in pythonhow to comment multi line in pythonpython mult line commenpython comentar multiples lineasis there multi line comment in python 3fhow to multipliune comment pythoncomment two lines at once in pythonwindows python comment multiple linespython how to comment multiple lines at oncecomment multiple line in pythonmultiple line comments in python is denoted byhow to comment line pythonmulti line comments pythonmulti comment pythonmultiline python commenthow to comment multiple lines in pythonpython multiple line commenthow to comment multilines in pythonpython commentspython multiple comment lineshow to do multiple line comment in pythonmulitline comment pythonpython comment ouy multiple linespython run code in commentspython multi commentcomment multiple lines in pythoncomment in multiple lines pythonhow to comment multiple lines in python at oncecomment everything pythonhow to comment out multiple lines of code in pythonhow to comment in pythoncomments in pythonpython 3 comment multiple linespython commentcomment multiline string pythoncomment in pythoncomments pythinhow to comment many lines of python at oncepython comment linehow to make single line comment in pythonpython write commentshow to give a multi line comment in pythoncomment on python multilinehow to comment multiple lines pythonmultiple comment line in pythonhow to make multiple line comment in pythoncomment multi c3 b1line pythonblock comment with pythonwhat to use for double line comment in pythonpython comment generator 22 22 22 22 22 22 22 multiline comment pyhtonhow to make multi line comments in pythonhow to do comment in pythoncomments pythoncomment many lines pythonhow to do a multiline comment in pythonmulti line comments in pythoncomment block pythonpython multiples lines comentshortcut to comment multiple lines in pythonpython multi line commentcomment out several lines pythonpython type comment multiplehow to make more line comment in pythonmulti line comment in pythonpython comment multiple already written linescomment many lines in pythoncomment out mupltiple lines of code pythodmulti comment in pythoncommenti pythonmultiline comment pythonhwo to single line comment multiple lines in pythonhow to turn multiple lines into comments in pythonpython put in commentshow to comment on pythonhow to multiline comment pythonpython multi row commentpython commend out multiple lines of codeto make a comment with multiple lines in pythonhow to make comments in pythonhow to declare multiple line comment in pythonmulty line comments in pythonmulti line comment pythonpython 2 lines after commentshow to comment several lines in pythonpython commenting multiple lineshow to comment on multiple lines in pythoncomment more lines pythonhow to write multiline comment in pythonhow to do a multi line comment in pythonmultiple line comment in pytonhow to multiline comment in pythonhow to comment a multiple lines in pythoncommenting multiple lines in pythoncomment out multiple lines python windowscomment single line in pythonabout comments in pythonpython multi line commentshow to comment in multiple lines in pythoncomments in python 3python mulitline commenthow to store more than one line in python as a commentmultiline comment pytohnmultiple commenting out code pythonexample of single line comment in pythonpython multiline commentspy commentscomment various lines pythoncomment multple lines pythonhow to comment out multiple lines in pythonthe multi string comment pythonhow to make a multi line comment in pythonpython single line commentpython multiline commenthow to comment out multiple lines of code pythonmultiple commenting out in pythoncommenting multiple lines in python in windowsmultiline comment in pythnhow to mkae comments in pythoncomment line in pythoncommenti multilinea pythoncomments in python 2multi comment line in pythoncomment out more than one line pythonpyhton commentcomment on pythonhow to write multi line comment in pythonhow to comment pythonmultiline comments in pythonsingle line comment in pythonmultiline comments pythonhow to coment down multiple line in pythonhow to multiline comment python shortcutemultiline comment in pythoncomment multiple lines in python shortutmultiple comment lines in pythonpython multiple line comment outmultiple comments in pymult line python commenthow to comments more than 2 lines in pythoncomments in python multiple linesdouble line comment in pythoncomments in python 5cmultiple line comment pythonpython comment functionshow to comment many lines in pythonhow to write python multiple line commentcomments multiple line in pythoncomment more than one line pythonpython multiline comment codehow to comment single line in pythonpy multiline commentmultiple comments pythonpython in commentpython multilne commenthow to comment multiple lines together in pythonmultiline comment pyhtonhow to comment many lines in python using 2fdoes python have multiline commentmake comment spanning multiple lines in pythonmultiline comment on pythonpython comment out multiple linesmultiline python commendshow to comment mutiple lines of code pythonmultiple line comment in python shortcutpython how to comment multiplae limeshow to write multi line comments in pythonseveral line in python commenthow to make a comment in pythonhow to comment more than one line in pythonshortcut to comment multiple lines with 23 in pythonpython comment several linesmultilien comment in pythoncomment multiline in pythonhow to change multiple lines codes in to comment in pythoncommentaire python multi linepython comment a sectionhow to comment out multiple lines with 23 in ythonmulti lined comments pythonhow to comment multiple lines in python shortcuthow to multi row comment pythonhow to comment more lines in pythonpython comment multiple linespython multi line commendsmultipline comment pythonmultyline comment in pythonhow to comment multiple lines in python using keyboardhow to document 2fcomment code in pythonhow to put multiple line comment in pythoncomment out multiple lines in pythoncomment multiple linews pythonpython comments blockcomment more than one line in pythonhow to write comments in pythonmultiline comment pypython comments multilinehow to multiline comment in python 3commenter multiple lignes commenter in pythonmulti line comment pythonall comments pythonmutiline comment pythonmultiline coment in pythonpython multi comment linepython multiple lines commentmultiple line comment in pt 3dythonpython fucntion commenthow to comment muiltiple lines in pythoncomment out multiple lines pythonhow to create a multiline comment in pythonhow to comment in python 27comment python several linespython comment many lineshow to make a multiline comment in pythonhwo to multiline comment in pythonhow to comment out multiple lines in python with 23how to comment python with 23python comment blockmultiline commenting in pythonmultline comment in pythonpython multi line commentswcoment in pythoncode comments in pythonmulti line python commentmultiply comments pythoncomments inpythonmultiple comments in pythonpython comment multple linesmore than one line comment in pythoncomment multiline pythonhow to make multline comment pythonpython multi line commenpython multi code commentmultiple line comment out in pythonhow to comment multiple lines string in pythonhow to comment many lines together in pythoncomment python multiple linescomments about pythonmulti comments in pythoncomment in line pythonmultiple line comments pythonpython commentaarcomment pythoncomment multiple lines python at oncepyhton multiline commenthow to make comment on python more than 1 linehow to add comment in pythonpython how to comment multiple linespython multiline comment