Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

what is indentation in python

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