python comment multiple lines

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

showing results for - "python comment multiple lines"
Léonard
24 Oct 2019
1Ctrl+/
2For Both:
3Ctrl+K+C 
4to comment
5Ctrl+K+U
6To uncomment
7
Livia
11 Mar 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
Ben
29 Aug 2019
1#This is a comment
2#And another one
3print("Hello !)  #Comment in the same line
4      
5"""
6A multiline
7comment
8"""
9print("Hello !)
Gideon
03 Aug 2020
1'''
2This is a multiline
3comment. AKA a docstring
4'''
Joshua
16 Jun 2016
1 def windows():
2	print('Select the text, Press CTRL + K , C to comment')
3
4 def mac():
5	print('Multi-line comment select the lines to be commented. Ctrl + 4.')
6
Dean
09 Jan 2021
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 pythonall comments pythonhow to comment multiple lines in python at oncemulti line comment pythonshourtcut comment out multiple lines in pythonsingle line comment in pythonpython multiline comment shortcuthow to comment out maby lines in pythonpython multi line commentshow to comment many lines in pythonhow to give a multi line comment in pythonhow to make more line comment in pythonhow to comment out multiple lines in pythonpython comment multiple already written linesshortcut for commenting multiple lines in pythonmulti lined comments pythonhow to document 2fcomment code in pythonhow to do a multi line comment in pythonhow to put multiple line comment in pythonshortcut to comment multiple lines in pythonpython multi commentpython multiple line comment outcomment multiple lines in pythonpython write commentspython multiple line commentcomment in python multiple linemultiline comment pythonhow to comment out multiple lines in python windowshow to comment on pythonpython function description commentshortcut key for multi line comment in pythonblock comment with pythonmultiple lines comment in pythonhow to make bigger space comment pythonpython comment functionsabout comments in pythonhow to put a multiline comment in python stack overflowhow to comment in python shortcuthow to comment out multiple lines of code in pythonmultiline comment in pythonshortcut to comment multiple line in python coment in pythoncomment multiple line in pythonpython comment multiple lines shortcutmulti line comment pythonpython put in commentsmultilien comment in pythonmultiple line comment out in pythoncomment pythonsingle line comment in python shortcutis there multi line comment in python 3fpython comment out multiple lineshow to comment several lines in pythonpython multi row commentcomment block pythoncode comments in pythoncomment in line pythonhow to comment every lines in python shortcutcomments inpythoncomments pythinhow to comment 1 line in pythonhow to comment single line in pythonhow to do comment in pythoncomment out many lines pythonhow to comment out lines of code in pythonhow to mkae comments in pythonhow to comment multiple lines in python keyboard shortcuthow to comment more lines in pythonpython commenthow to comment out multiple lines in python shortcuthow to comment in multiple lines in pythonpython commentshow to make multiple lines as comment in pythonmulti comment in pythonhow to change multiple lines codes in to comment in pythonpyhton commentblock comment python errormultiline comment python stack overflowcomment on pythonpython multi line commentcomment out several lines pythonpython single line commenthow to make a multi line comment in pythoncomments for more than a riga pythoncomment in python shortcuthow to comment multiple lines in python shortcuthow to comment on multiple lines in pythonpython mulitline commentcomment out multiple lines in pythoncomment multiline pythoncomments in pythonhow to comment lines in pythonpython fucntion commenthow to comment more than one line in python shortcutpython comment several lineshow to comment multilines in pythoncomments in python 2comment multiple lines pythonpython comment generatorhow to comment multilines lines at once in pythoncommentaire python multi linepython how to comment multiplae limesmultiple line comment in pythonmultline comment in pythonwhat to use for double line comment in pythonpy commentscomment many lines pythonhow to create a multiline comment in pythonhow to multiline comment in pythonmultiply comments pythonpython commenting multiple linespython commentaarpython comment a sectionmultiline comment pypython comment blockmultipline comment pythonpython how to comment multiple lines at oncemultiline comments in pythoncomments pythonpython comments blockhow to comment all lines in pythonmultiple commenting out code pythonhow to declare multiple line comment in pythonhow to comment muiltiple lines in pythonhow to write multiline comment in pythonhow to make multiple line comment in pythonhow to comment multiple lines together in pythoncomments about pythoncomment python multiple lineshow do i comment a bunch of lines of code in python shortcutmultiple line comment in python shortcutpython how to comment multiple lineshow to add comment in pythoncommenti pythoncomment everything pythonpython comment linepython commenthow to do a multiline comment in pythonpython multiline commentpython comment all linesto make a comment with multiple lines in pythonhow to apply multiple line comment in pythonmultiline comment in pythnhow to comment out a lines in pyhow to write multi line comment in pythonmulti comment pythoncomment in pythoncommenti multilinea pythonmultiple line comments in python is denoted byhow to coment down multiple line in pythonmultiple comment line in pythonhow to make a comment in pythonhow to comment out a bunch of lines in pythonmulti line comments in pythonhow to comment lots of lines in pythonmultiple line comment in pt 3dythonmultiple line comment pythonpython comment multiple linesmultine comment python shortcuthow i can comment in python multiple lineswindows python comment multiple lines shortcutpython how to comment multiple lines shortcuthow to make a multiline comment in pythonmultiline comments pythonmulti line comment in pythonhow to comment in pythonhow to comment many lines together in pythonthe multi string comment pythonpython commenting shortcuthow to make multi line comments in pythoncomment shortcut pythondoes python have multiline commenthow to make comments in pythonexample of single line comment in pythoncomments in python multiple linescommenting multiple lines in pythonmultiple comments in pythoncomments in python 3python multi comment linehow to comment selected lines in flaskhow to comment a multiple lines in pythondouble line comment in pythonpython comment many linespython in commentwhat is the shortcut to comment multiple lines in pythonpython how to comment multiple lines at once keyboard shortcutmultiple line comments pythonpyhton multiline commentcomment out multiple lines python 22 22 22 22 22 22 22 multiline comment pyhtonshortcut to turn comment multiple lines in pythonpython comment ouy multiple lineshow to write comments in pythonpython multi code commentmake comment spanning multiple lines in pythoncomment shortcut in pythonhow to comment pythonpython run code in commentshow to comment multiple lines in pythonpython multiline commentshow to comment line pythonhow to multi row comment pythoncomment in multiple lines pythoncomments in pyhton 27comment multiple lines python at oncepy multiline commentshortcut to comment multiple lines with 23 in pythoncomment out multiple lines python shortcutshortcut for commenting out multiple lines in pythonhow to comment more lines in python stack overflowseveral line in python commentcomment multiline string pythonhow to select and comment multiple lines in pythoncomment in python 3comments in python 5ccomment multiple lines python shortcutcomment line in pythonpython 3 comment multiple lineshow to comment python with 23how to make single line comment in pythoncomment multiple lines in python shortcuthow to comment in python 27python comment multiple lines