# 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
Indentation in Python refers to the (spaces and tabs) that are used at the beginning of a statement.
#indentation in python matters because indentation refers to the spaces at the
#beginning of a code line.
#indentation in python is inportant becuse python do not use {} to ditermine
#the part of code insted it uses indentation to understand if the code is part
#of functon , loop, condition and etc
#following is the example run this code in your ide and find the diffrences
#good luck to find the diffrences
if 5 > 2:
print("Five is greater than two!")
if 5 > 2:
print("Five is greater than two!")
if 5 > 2:
print("Five is greater than two!")
if 5 > 2:
print("Five is greater than two!")
#1) Select the code you want to indent
#2) On the menu on top click on "Format" and then click on "Indent region"
#On Mac you may also just click cmd + ]
if 6 > 3:
print("Six is greater than three")