About 369,000 results
Open links in new tab
  1. How do I create multiline comments in Python? - Stack Overflow

    For writing “proper” multi-line comments in Python is to use multi-line strings with the """ syntax Python has the documentation strings (or docstrings) feature.

  2. Multiple line comment in Python - Stack Overflow

    Jan 21, 2014 · Is there a way to give multiple line comments in Python? Like it is in case of C/C++ : /*comment*/. Or does it have to be marked "#" in front of every line?

  3. Python multiline comments - Stack Overflow

    Aug 19, 2021 · 2 I am struggling with multi line comments in Python, I understood I can use # at the start of every line of multi line comments but there is also another way of using """ at the …

  4. Why doesn't Python have multiline comments? - Stack Overflow

    Dec 29, 2008 · Multi-line comments aren't inherently breakable; it's just that most implementations of them are (including Python's). The obvious way to do multi-line comments in Python, to my …

  5. How can I comment multiple lines in Visual Studio Code?

    For python code, the "comment block" command Alt + Shift + A actually wraps the selected text in a multiline string, whereas Ctrl + / is the way to toggle any type of comment (including a …

  6. python - Is there a way to put comments in multiline code

    Jul 13, 2013 · Python way is with # on every line if you want to comments something or for inline comments everything after # is ignored. If you really want to comment a multiline statement …

  7. Why does python use unconventional triple-quotation marks for …

    Nov 22, 2017 · So people have found it convenient to comment out large bits of python code using multi-line strings (providing you escape any internal multi-line strings). This isn't that …

  8. Shortcut key for commenting out lines of Python code in Spyder

    Apr 15, 2016 · I recently changed from the Enthought Canopy Python distribution to Anaconda, which includes the Spyder IDE. In Canopy's code editor, it was possible to comment and …

  9. python - Comment/Uncomment multiple lines in …

    May 12, 2021 · CTRL+/ for comment and uncomment multiple lines you can press 'h' anywhere in command mode, you can find all the shortcuts of jupyter.

  10. Is there a shortcut to comment multiple lines in python using VS …

    Sep 26, 2022 · Instead of indivually typing out a hash tag in front of each line, is there a way to select a block of code and comment/uncomment everything by only pressing a couple shortcut …