×

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
Other
Urology Devices Market Demand, Share, and Strategic Outlook - 2030
Urology Devices Market Projected to Expand at 7.2% CAGR Through 2030 The Global Urology...
By Ditoj Ditoj 2025-06-10 05:48:31 0
Other
In-Game Advertising Market Analysis and Outlook Report 2025-2034
The worldwide "In-Game Advertising Market" 2025 Research Report presents a professional and...
By ASHWINI GOURKHEDE 2025-05-19 06:13:41 0
Information Technology
家庭用製粉機業界分析レポート2025:市場規模、産業調査、最新動向、成長機会
2025年5月12日に、QYResearch株式会社(所在地:東京都中央区)は「家庭用製粉機―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料を発行しま...
By Qyresearch Jasmine1 2025-05-12 05:42:14 0
Other
Mammography Market Research Report: Growth, Share, Value, Trends, and Insights
The most recent report published by Vantage Market Research indicates that the "Mammography...
By Tushar Jane 2025-05-22 05:16:13 0
Other
Latent TB Testing Market Size, Share, Trends & Forecast to (2024-2032) | UnivDatos
According to the UnivDatos, rising tuberculosis (TB) incidence, increased need for screening in...
By Tanmay Gupta 2025-06-04 12:40:19 0