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

    111 Python does have a multiline string/comment syntax in the sense that unless used as docstrings, multiline strings generate no bytecode -- just like # -prepended comments. In …

  2. 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 …

  3. 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 …

  4. python - What is the shortcut key to comment multiple lines using ...

    Feb 8, 2022 · In Corey Schafer's Programming Terms: Mutable vs Immutable, at 3:06, he selected multiple lines and commented them out in PyCharm all in one action. What is this action? Is it …

  5. python - Proper indentation for multiline strings? - Stack Overflow

    Other than that, multiline string literals in Python are unfortunately what-you-see-is-what-you-get in terms of whitespace: all characters between the string delimiters become part of the string, …

  6. 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 …

  7. What is the proper way to comment functions in Python?

    Mar 2, 2010 · A docstring isn't a comment, and people often want to include things in function-level comments that shouldn't be part of documentation. It's also commonly considered that …

  8. Multiple line comment in Python - Stack Overflow

    Jan 21, 2014 · Try this ''' This is a multiline comment. I can type here whatever I want. ''' Python does have a multiline string/comment syntax in the sense that unless used as docstrings, …

  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. 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 …