About 132,000 results
Open links in new tab
  1. How to comment out a block of code in Python [duplicate]

    Highlight the code you want to comment out, then C-x-r-t # To un-comment the code: highlight, then C-x-r-k. I use this all-day, every day. (Assigned to hot-keys, of course.) This and powerful …

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

    Dec 14, 2019 · String literals occurring elsewhere in Python code may also act as documentation. They are not recognized by the Python bytecode compiler and are not accessible as runtime …

  3. How do I create multiline comments in Python? - Stack Overflow

    Apr 9, 2022 · Among other answers, I find the easiest way is to use the IDE comment functions which use the Python comment support of #. I am using Anaconda Spyder and it has: Ctrl + 1 …

  4. How to "comment-out" (add comment) in a batch/cmd?

    If there are large number of lines you want to comment out then it will be better if you can make multi line comments rather than commenting out every line. See this post by Rob van der …

  5. How to write an inline-comment in Python - Stack Overflow

    Dec 14, 2019 · Whitespace in Python is too important to allow any other kind of comment besides the # comment that goes to the end of the line. Take this code: x = 1 for i in range(10): x = x + …

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

    Sep 26, 2022 · Shortcut to comment out multiple lines with Python Tools for Visual Studio. 729.

  7. syntax - Mid-line comment in Python? - Stack Overflow

    Mar 6, 2015 · I'm wondering if there is any way to comment out part of a line, like you can do in c++ with /*this*/. The only comments I know about are # this which always goes to the end of …

  8. python - How to comment multiple lines of code in visual studios ...

    Jun 8, 2021 · to comment out multiple lines in python you can use triple quotes like this: """ this is line 1 of my comment and this is line 2 of my comment this is link 3 """ you get the point as …

  9. What is the proper way to comment code in Python? [closed]

    I don't know if this represents the "community standard" but here are Google's Python style guides (as they relate to comments). Specifically classes: Specifically classes: class …

  10. Shortcut to comment out multiple lines with Python Tools for …

    May 30, 2017 · To make the comment of a block, it is a sequence of keys: Ctrl-K + Ctrl+C and to un-comment Ctrl-K + Ctrl-U. Here are some other very useful keys for Python: Share

Refresh