Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

indentation levels in programming

value = 18
typer = "integer"
if value > 20:
	print("It's greater than 20")
	if typer == "integer":
      print("Oh number")
    else:
      print("Oh no number")

#the fisrt if is on indentation level zero,print inside it is on indentation level 1 and so on
#in some programming languages first level starts as one rather than zero 
 
PREVIOUS NEXT
Tagged: #indentation #levels #programming
ADD COMMENT
Topic
Name
2+4 =