×

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.

Search
Categories
Read More
Information Technology
静電微細孔セラミックチャック業界の最新市場動向:売上、価格、販売数量の分析レポート2025
2025年5月8日に、QYResearch株式会社(所在地:東京都中央区)は「静電微細孔セラミックチャック―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査...
By Qyresearch Jasmine1 2025-05-08 05:50:18 0
Other
Intermodal Chassis Market Analysis by Size, Share, Growth, Trends and Forecast (2024–2032) | UnivDatos
The intermodal chassis market plays a crucial role in the global logistics and transportation...
By Ahasan Ali 2025-06-04 12:51:37 0
Other
Vegan Cheese Market Growth and Forecast Analysis 2034
Global Vegan Cheese Market: Industry Trends, Share, Size, Growth, Opportunity and Forecast...
By ASHWINI GOURKHEDE 2025-05-07 05:57:20 0
Health
Comprehensive Analysis of Cut&Run vs ChIP-seq
Introduction to Epigenetic Profiling Epigenetic profiling is essential for elucidating gene...
By Kiko Garcia 2025-05-28 07:54:36 0
Other
Can Chinese calligraphy writing reveal a person’s inner character and emotions through brush strokes?
Chinese calligraphy writing is more than just a method of recording language—it is a deeply...
By Hanzla Ali 2025-05-28 05:31:08 0