×

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.

Buscar
Categorías
Read More
Other
外観検査顕微鏡世界市場調査レポート:規模、成長戦略、トレンド予測2025-2031
2025年6月9日に、QYResearch株式会社(所在地:東京都中央区)は「外観検査顕微鏡―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の最新調査資料を発行しま...
By Qyresearch Jasmine1 2025-06-09 09:16:21 0
Other
AI in Agriculture Market outlook and future Growth Analysis up to 2034
The worldwide "AI in Agriculture Market" 2025 Research Report presents a professional and...
By Tushar Jane 2025-05-19 05:16:31 0
Other
熱可塑性ポリウレタン用赤リン難燃剤競合分析2025:主要企業の戦略、投資機会、事業展開
2025年6月6日に、YH Research株式会社(本社:東京都中央区)は、調査レポート「グローバル熱可塑性ポリウレタン用赤リン難燃剤のトップ会社の市場シェアおよびランキング...
By Krystal Lin 2025-06-06 06:26:59 0
Other
Beauty Devices Market Analysis and Growth Opportunities 2025-2034 Forecast
The most recent report published by Vantage Market Research indicates that the "Beauty Devices...
By Tushar Jane 2025-05-27 05:12:44 0