Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

how to comment multiple lines of code in python

V Azevedo answered on November 17, 2019 Popularity 9/10 Helpfulness 1/10

Contents


More Related Answers

  • how to make a comment python
  • comment multiple lines python shortcut
  • python multi comment
  • how to make a comment in python
  • muliline comment in pyhton
  • how to make a comment in python
  • how to make a comment in py
  • Example of Single-line comment in Python
  • python multiline comment
  • How to add a multi-line comment in python
  • comment all selected lines in python
  • Multi-line comments Python Example
  • comment out multiple lines in python
  • how to comment multiple lines in python ion sublime text
  • multi line cooment in python
  • Single line Commenting in Python
  • Example of Python Inline comments
  • python single line comment
  • python single-line comments

  • how to comment multiple lines of code in python

    0

    In Python, you can comment multiple lines of code using either triple quotes or the "#" symbol at the beginning of each line.

    Using triple quotes or using the "#" symbol: 

    Note that triple quotes can also be used to create multi-line strings, so make sure you don't confuse the two. If you want to comment out multiple lines of code, it's best to use the "#" symbol. 

    Popularity 9/10 Helpfulness 1/10 Language python
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Feb 28 2023
    V Azevedo
    0 Answers  Avg Quality 2/10

    Closely Related Answers



    70
    Popularity 10/10 Helpfulness 4/10 Language python
    Source: Grepper
    Tags: multiline mult
    Link to this answer
    Share Copy Link
    Contributed on Jan 31 2021
    Concerned Civet
    0 Answers  Avg Quality 2/10

    13
    Popularity 10/10 Helpfulness 4/10 Language python
    Source: Grepper
    Tags: python py
    Link to this answer
    Share Copy Link
    Contributed on Dec 17 2020
    0 Answers  Avg Quality 2/10

    7
    Popularity 10/10 Helpfulness 4/10 Language whatever
    Source: Grepper
    Tags: lines line
    Link to this answer
    Share Copy Link
    Contributed on May 18 2021
    Victorious Vole
    0 Answers  Avg Quality 2/10

    15
    Popularity 10/10 Helpfulness 4/10 Language python
    Source: Grepper
    Tags: lines line
    Link to this answer
    Share Copy Link
    Contributed on Nov 17 2019
    Blacksmith Plover
    0 Answers  Avg Quality 2/10

    15
    Popularity 10/10 Helpfulness 4/10 Language python
    Tags: multiline mult
    Link to this answer
    Share Copy Link
    Contributed on May 15 2020
    Ugly Unicorn
    0 Answers  Avg Quality 2/10

    6
    Popularity 10/10 Helpfulness 4/10 Language python
    Tags: line
    Link to this answer
    Share Copy Link
    Contributed on Apr 24 2020
    Bewildered Barracuda
    0 Answers  Avg Quality 2/10

    15
    Popularity 10/10 Helpfulness 4/10 Language python
    Source: Grepper
    Tags: multiline mult
    Link to this answer
    Share Copy Link
    Contributed on Jul 23 2020
    Jolly Jellyfish
    0 Answers  Avg Quality 2/10

    5
    Popularity 10/10 Helpfulness 3/10 Language python
    Source: Grepper
    Tags: multiline mult
    Link to this answer
    Share Copy Link
    Contributed on Nov 19 2020
    PhenXfeyr
    0 Answers  Avg Quality 2/10

    1
    Popularity 9/10 Helpfulness 3/10 Language python
    Link to this answer
    Share Copy Link
    Contributed on Oct 01 2022
    Tanner Doriano
    0 Answers  Avg Quality 2/10

    3
    Popularity 10/10 Helpfulness 3/10 Language python
    Source: Grepper
    Tags: multiline mult
    Link to this answer
    Share Copy Link
    Contributed on Jan 16 2021
    coderbisht
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.