indentation in python

# usually use 4 spaces to indent (don't mix with TABs)
j = 1
site = 'cg'
while(j<= 1):
    if site == 'cg': 
        print('okay') 
    else: 
        print('retry') 
    j += 1
    print ('j: ' + str(j))
print('Done') 					# okay          j: 2        Done

4.2
10
Phoenix Logan 186120 points

                                    Indentation in Python refers to the (spaces and tabs) that are used at the beginning of a statement. 

4.2 (10 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
how to indentation in python indentation in functions in python what means indentation in python indentation fixer python string indentation python indentation in python meaning python indentation formatter python function indentation why do we use indentation in python python how to easily indentation how indentation works in python define indentation in python python indent fixer indentation fixer in python python indentations python print with indentation indentation in python explained indentation tool for python in which cases we need indentation in python python indentation proper python indentation rules python docs function in python indentation what is indentation python indentation python 3 indentation meaning in python 3.)What is indentation in Python? indentation inside a function in python format indentation in python indentation error python for loop indentation in python with example python fix indentation indentation in python for function indentation en python purpose of indentations in python python 3.7 how to use indentation python program to control indentation python list indentation indentation in python importance correcting indentation in python indentation block python so how does indentation affect your python script python indent formatter python list syntax indentation python print indentation python and or indentation python and or indentation why is python using indentation les indentations en python how to correct indentation in python how to check indentation in python code how indentation can be implemented in python pyhton indentation indentation python example why python has indentation indentation rules in python indentation problem in python python is a indentation language correct indentation in python string python3 method indentation python indentation fixer python indentation syntax python identation what is the meaning of indentation in python python manage indentation levels python and indenting statements with the same indentation are called python how to recognize indentation interpreter indent=2 meaning in python how do you indent in python python indic indentation in pythin intend python python indention pythjon indent explain python model string indentation python indentator intendation thonny What is Indentation in Python? idedentation python indentation in python example python identdition python indentation explained python method indentation Python indentation is for what purpose ? indenting python program indentation in pythpom indentation in python if statment how to manage indentation in python python is an indentation language indentaton rules in python how does python treat a line indent how many indentation was available python what is an indent in python 3 how to indent a command in python indent python what does intending mean in python python indentation example indentation in python 3 how to deal with python indentation indenting python understanding indentation in python what is indendation in python python and indentaiton how to indent in python python code indentation indention in python python if indentation python indents what is python indentation python indentation should be python indetting rules indentation definition in python python indent what is an indent in python what is an indent in python? python indents explained how to use indentation in python can i use indentation in python for comments what is the indentation rule in python what is indentation in python how to add a indent in python indent in python lines and indentation in python how to use indendation in python when we will use indentation in python how to indent function in python what is python indentation used for What signifies the end of a statement block or suite in Python? mcq What signifies the end of a statement block or suite in Python? what is indent in python indentation python python indentation rules python indentation how to do indentation in python why indentation in python indented python meaning indentation in python
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source