Search
 
SCRIPT & CODE EXAMPLE
 

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 
Comment

PREVIOUS NEXT
Code Example
Python :: python write line break 
Python :: Plotly set axes labels 
Python :: python set remove if exists 
Python :: find character in python 
Python :: how to rotate screen with python 
Python :: beautiful soup get class name 
Python :: sympy function definition 
Python :: python convert string to bytes 
Python :: django setup in windows 
Python :: anaconda 3 geopandas 
Python :: number of unique pairs in columns pandas 
Python :: python find the average of a list 
Python :: python hide details 
Python :: secondary y axis matplotlib 
Python :: python date to timestamp 
Python :: date.month date time 
Python :: otp generation in python 
Python :: simple way of finding file extension python programming 
Python :: networkx max degree node 
Python :: django migrate not creating tables 
Python :: comment in python 
Python :: how to use global variable in python 
Python :: python get weather 
Python :: python how to remove commas from string 
Python :: pymupdf extract all text from pdf 
Python :: remove element from list 
Python :: delete dataframe from memory python 
Python :: root mean square python signal 
Python :: add column to existing numpy array 
Python :: python functions 
ADD CONTENT
Topic
Content
Source link
Name
6+1 =