×

To install this app on your iPhone, tap Share 🔗 then Add to Home Screen.

04 Python uses Identation to indicate the code block

0
57

The spaces at the beginning of a code line is called as Identation.

In other Programming languages Identation or Spaces in the beginning of the code if just for readability but In Python it makes difference. The indentation in Python is very important. Python uses indentation to indicate a block of code.

For Example:

if 5 > 2:
  print("Five is greater than two!")

In above example when you make identation before print statement after IF statement, it is considered as the code block for IF statement.

and

if 5 > 2:
print("Five is greater than two!")

the above code will give you syntax error.

Zoeken
Categorieën
Read More
Other
Laser Handschweissgerät: La Soluzione Avanzata per la Saldatura di Precisione
Nel mondo industriale moderno, la tecnologia laser ha rivoluzionato molti processi di...
By John Kaur 2025-06-05 10:50:32 0
Other
AI API Market Size, Share and Research Report, 2033
AI APIs enable businesses to incorporate the power of machine learning, natural language...
By Mohit Joshi 2025-05-14 10:46:00 0
Sports
Watch Free Sports with MethStreams: Your Ultimate Streaming Guide
In the age of digital convenience, streaming has become the go-to method for catching live...
By Mr Umii 2025-05-27 08:12:21 0
Other
Blood Pressure Cuffs Market Size, Share, Trends & Forecast to (2024-2032) | UnivDatos
According to the UnivDatos, the rise of hypertension cases, increasing adoption of automated...
By Tanmay Gupta 2025-06-09 06:53:47 0