Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python indentation

# 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
 
PREVIOUS NEXT
Tagged: #python #indentation
ADD COMMENT
Topic
Name
7+1 =