indentation error python for loop

Solutions on MaxInterview for indentation error python for loop by the best coders in the world

showing results for - "indentation error python for loop"
Matteo
16 Nov 2018
1# usually use 4 spaces to indent (don't mix with TABs)
2j = 1
3site = 'cg'
4while(j<= 1):
5    if site == 'cg': 
6        print('okay') 
7    else: 
8        print('retry') 
9    j += 1
10    print ('j: ' + str(j))
11print('Done') 					# okay          j: 2        Done
queries leading to this page
function in python indentationindentation fixer in pythonindentation symbol in pythonhow python indentation workshow does python indentation workindentation in python functionindentation error python for looppython indentation explainedindentation meaning in pythonwhat 27s indentation in pythonpython indentation exampleindentation in for loop pythonindentation python meaningformat indentation in pythonwhat is indentation in python 3fprint python indentationpython indent fixerindentation python 33 29what is indentation in python 3findentation en pythondefine indentation in pythoncode to print indentation in pythonpython programming indentationpython while loop indentation errorwhat 27s indentation in python 3fhow to define function that use with indentation in pythonwhat is best python indentationindentation in python meanspython code indentationpython with indentwhat is indentation in pythonlist indentation pythonpython indentation functionindentation in functions in pythonindentations are used in python code for which reason 3fpython indentationspyhton indentationhow to format indentation in pythonindentation in python with examplepython indent codehow to define function that have indentation in pythonwhat is the best indentation in pythonwhat is indentation in pythinhow to format the indentation in pythonhow indentation works in pythonstandard indentation pythonwhat is python indentationwhat means indentation in pythonpython fix indentationpython indentation properindentation in python meaningcode for indentation in pythonpython function indentationpython indentation fixerwhy do we use indentation in pythonwhat is an indentation in python 3fpython how to easily indentationhow to indentation in pythonpython indent libraryhow to do indentation in pythonindentation rules in pythonindentation in pythonindentation in python explaineddoes python use indentationpython indentationwhat is the command for indentation in pythonwhat is indentation pythonindentation pythonstandard indentation type for pythonhow to indent in code pythondoes python use indentation for loopindentation fixer pythonpython indentation rules python docswhy does python use indentationpython indentation 3fstring indentation pythonindentation rules pythonindentation error python for loop