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

Indentation#

Sumit Rawal answered on May 16, 2023 Popularity 10/10 Helpfulness 2/10

Contents


More Related Answers

  • what is an indentation error
  • indentation levels in programming
  • javascript indentation
  • python indentation
  • indentation in python
  • what is indentation in python
  • indentation error
  • indentation error python
  • indesign
  • what is indentation in web development
  • indentation in python
  • Proper indentation:
  • indentation python error

  • Indentation#

    1

    Indentation plays an essential role in Python. Statements with the same level of indentation belong to the same block of code. The code of an if statement is indented a space further than the code outside it in order to indicate that this is an inner and inter-related block.

    The convention of our indents must also be consistent throughout a block. If we have used two spaces to make an indent, we must use two spaces for an indent in the same block. Hence, always keep indentation in mind when writing code.

    Indents are important in other aspects of Python, too.

    Popularity 10/10 Helpfulness 2/10 Language whatever
    Source: Grepper
    Tags: whatever
    Link to this answer
    Share Copy Link
    Contributed on May 16 2023
    Sumit Rawal
    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.