×

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.

Pesquisar
Categorias
Leia mais
Outro
セルフフローキャスタブル競合分析2025:主要企業の戦略、投資機会、事業展開
2025年6月9日に、YH Research株式会社(本社:東京都中央区)は、調査レポート「グローバルセルフフローキャスタブルのトップ会社の市場シェアおよびランキング...
Por Krystal Lin 2025-06-09 05:50:56 0
Outro
Food Contact Paper Market Revenue and Share Study Analysis to 2034
Global Food Contact Paper Market: Industry Trends, Share, Size, Growth, Opportunity and...
Por ASHWINI GOURKHEDE 2025-05-07 05:57:16 0
Outro
測量用ポテンショメータ世界規模分析:市場シェア、産業動向、成長機会2025-2031
2025年5月20日に、QYResearch株式会社(所在地:東京都中央区)は、「測量用ポテンショメータ―グローバル市場シェアとランキング、全体の売上と需要予測、2025~2031」の調査資料を...
Por Moni Ka 2025-05-20 07:00:54 0
Outro
グローバルN-オクチルフェロセンレポート:市場シェア、需要分析、成長機会2025
2025年6月9日に、YH Research株式会社(本社:東京都中央区)は、調査レポート「グローバルN-オクチルフェロセンのトップ会社の市場シェアおよびランキング...
Por Krystal Lin 2025-06-09 06:04:11 0
Outro
Germany Solar PV Glass Market Insights, Opportunities & Forecast 2025
Germany Solar PV Glass Market - An Overview Germany has long been a global leader in the adoption...
Por Reshama Patil 2025-06-03 05:23:59 0